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