Facebook
From Colorant Bison, 4 Years ago, written in Plain Text.
This paste is a reply to Untitled from Scanty Hummingbird - view diff
Embed
Download Paste or View Raw
Hits: 252
  1. import random
  2. liczba = random.randint(1,10)
  3. l= input("Zgadnij wygenerowaną liczbę od 1 do 10: ")
  4. while l!=liczba:
  5.     if l=="EXIT":
  6.         print("KONIEC :(")
  7.         break
  8.     else:
  9.         l=eval(l)
  10.         if l>liczba:
  11.             print("Liczba jest za wysoka :(")
  12.             l=input("Zgadnij wygenerowaną liczbę od 1 do 10: ")
  13.         elif l<liczba:
  14.             print("Liczba jest za niska :(")
  15.             l=input("Zgadnij wygenerowaną liczbę od 1 do 10: ")
  16. print("FAJNIE")