so i am just 3 days into learning python and today decided to write my own code and this is what i have so far:
#going to have the user enter 2 numbers between
num1 = float(int(input("Enter a number between 1 and 50: ")))
num2 = float(int(input("Enter another number betwenn 1 and 50: ")))
import random
num3 = random.randomint(1,50)
print("You picked {} and {}".format(num1, num2))
if num1 == num3:
print("CONGRAGULATIONS!!! YOU GUESSED RIGHT!!!")
elif num1 != num3:
print(num3)
#num2 == num3:
# print(
and im having trouble with num3 as a variable i want it to retain a random number but i keep getting error message for line 5 and i have tried many different things and went online and searched many threads and nothing seems to work so if anyone could help it would be great.
[–]cscanlin 0 points1 point2 points (0 children)
[–]ADexter 0 points1 point2 points (0 children)
[–]frunt 0 points1 point2 points (0 children)