Hi, this is my first post. Ive made a number game which is written in python 2.5 and have some problems with it:
-------------------------------------
import random
# You've got to guess 4 numbers between 0 and 30, if you one right the program will output "WINNER" and tell you the computer's numbers
x = random.randint(0,30)
y = random.randint(0,30)
z = random.randint(0,30)
t = random.randint(0,30)
print "Enter 4 numbers between 0 and 30"
if raw_input() == x:
print "WINNER"
elif raw_input() != x:
print "LOSER"
print "The Computer's Numbers Were:"
print x,y,z,"and",t
-----------------------------------------------
I basically want to be able to enter 4 numbers, each separated by a space, and have the computer compare the inputted numbers to its numbers, if a number is right, the program will print WINNER or LOSER and then show the computers numbers. Im halfway there I just need a little extra help
Thanks,
Laurence:idea: