Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. #Linus Hansson
  2. #Linux administration 7.5
  3.  
  4.  
  5. import random
  6.  
  7. x=1
  8. z=1000 
  9. guess=0
  10. number=random.randint(1,1000)
  11.  
  12.  
  13.  
  14. while True:
  15.     guess = int(input("Im thinking about a number between 1-1000"))
  16.        
  17.     if guess < number:
  18.         print ("thats to low!")
  19.        
  20.     elif guess > number:
  21.         print ("thats to high")
  22.    
  23.     else:
  24.         print ("There u go! good jobb!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement