Advertisement
Guest User

Untitled

a guest
Jul 9th, 2023
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. def is_smth_required_not_filled(file, user_choices):
  2.  
  3.     with open(file) as f:
  4.         # Tutaj sobie sprawdzasz czy użytkownik wszystko zrobił poprawnie
  5.         if no:
  6.             return False
  7.         return empty_cell
  8.  
  9. while True:
  10.     # tutaj jakiś kod, który powie Ci jaki jest wybór użytkownika, abyś później to przekazał jako user_choice
  11.     foo = is_smth_required_not_filled(file, user_choice)
  12.     if foo is False:
  13.         break
  14.     else:
  15.         input("Prosze, uzupelnij to pole: {wymagane_pole}, zapisz plik i naciśnij dowolną literę".format(wymagane_pole=foo))
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement