Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def podajLiczbe(liczba):
- if (liczba < 0):
- return '-1000'
- if (liczba == 0):
- return 'ZEROOOO!!!!'
- if (0 < liczba < 10):
- return liczba
- if (liczba >= 10 and liczba <= 100):
- return "dużo"
- if (liczba > 100):
- return "bardzo dużo"
- while (True):
- try:
- liczba = int(input("Wprowadź liczbę całkowitą: "))
- except ValueError:
- print("To nie jest liczba całkowita")
- break
- print(podajLiczbe(liczba))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement