Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import random
  2.  
  3. a = random.randint(1,9)
  4. user_input1 = int(input("guess first number: "))
  5. user_input2 = int(input("guess second number: "))
  6. user_input3 = int(input("guess third number: "))
  7.  
  8. if user_input1 == a or user_input3 == a or user_input2 == a:
  9. print("you guess the correct number! " + f"the correct number is {a} ")
  10. else:
  11. print("you guessed the wrong numbers! " + f"the correct number is {a} ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement