Advertisement
Arek_

1in

Feb 24th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import os
  2. while 1 > 0:
  3. x = input("wpisz który jest rok lub x jeśli chcesz zamknąć: ")
  4. if x == 'x':
  5. exit()
  6. else:
  7. if x%4 == 0:
  8. print("Jest rok przestępny.")
  9. input("Kliknij Enter aby kontynułować...")
  10. else:
  11. print("Nie jest przestepny.")
  12. input("Kliknij Enter aby kontynułować...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement