Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- liczba =random.randrange(1,101)
- print(liczba)
- for i in range(1,5):
- los_1 =input ('podaj liczbę z zakresu 1-100: ')
- if int(los_1) < liczba:
- print ('więcej')
- elif int(los_1) > liczba:
- print ('mniej')
- else:
- print ("trafiłeś")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement