I'm just learning python and i'm trying to make a game where someone puts in 3 numbers and the program picks one of them at random
import random
print "Enter 3 numbers and i'll choose 1 at random"
a = 0
b = 0
c = 0
nmlist = [a, b, c]
while 1 == 1:
nmlist = [a, b, c]
a = input("first number? ")
b = input("second number? ")
c = input("third number? ")
if (a == int, b == int, c == int):
print 'picking...'
s = random.choice(nmlist) + 1
print s
else:
a = input("first number? ")
b = input("second number? ")
c = input("third number? ")
the random part doesn't work... it i can type 1, 2, and 3 and the random number will come out as 4 and 5, 22, 6 got 8
I'm sure there's other problems too so if anyone can help me it'd be great