Advertisement
msoo248

Untitled

Jul 11th, 2019
105
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.  
  3. liczba =random.randrange(1,101)
  4. print(liczba)
  5. for i in range(1,6):
  6.  los_1 =input ('podaj liczbę z zakresu 1-100: ')
  7.  if int(los_1) == int(liczba):
  8.    print('trafiłeś')
  9.    break
  10.  else:
  11.     if int(los_1) < liczba:
  12.      print ('więcej')
  13.     elif int(los_1) > liczba:
  14.      print ('mniej')
  15. print('przegrałeś')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement