Advertisement
Guest User

Untitled

a guest
Jun 13th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. for y in cena:
  2. if not y in string.digits:
  3. print("Wprowadz prawidlowe dane: ")
  4. prawidlowe = False
  5. while not prawidlowe:
  6. cena = input("Podaj cene.")
  7. i = 0
  8. for z in cena:
  9. if z in string.digits:
  10. i += 1
  11. if i == len(cena):
  12. prawidlowe = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement