Advertisement
msoo248

Untitled

Jul 11th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import random
  2. liczba =random.randrange(1,101)
  3. print(liczba)
  4. for i in range(1,6):
  5.  los_1 =input ('podaj liczbę z zakresu 1-100: ')
  6.  if int(los_1) < liczba:
  7.    print ('więcej')
  8.    los_2 =input ('podaj liczbę: ')
  9.  elif int(los_1) > liczba:
  10.    print ('mniej')
  11.    los_2 =input ('podaj liczbę: ')
  12.  else:
  13.    print ("trafiłeś")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement