Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_smth_required_not_filled(file, user_choices):
- with open(file) as f:
- # Tutaj sobie sprawdzasz czy użytkownik wszystko zrobił poprawnie
- if no:
- return False
- return empty_cell
- while True:
- # tutaj jakiś kod, który powie Ci jaki jest wybór użytkownika, abyś później to przekazał jako user_choice
- foo = is_smth_required_not_filled(file, user_choice)
- if foo is False:
- break
- else:
- input("Prosze, uzupelnij to pole: {wymagane_pole}, zapisz plik i naciśnij dowolną literę".format(wymagane_pole=foo))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement