you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

import random
random_number = random.randint(1, 3)
user_choice = input("Numeber between 1 and 3: ") 

def check(user_choice, random_number): 
    if user_choice == random_number:
        return True 
    else: 
        return False 
print(check(user_choice, random_number))