First python program, syntax error in while loop

2013-05-03 Thread ryankoch38
title = "Guess my number game:" print title.title() raw_input("Press any key to continue..") import random tries = 0 number = random.randrange(99) + 1 guess = int(raw_input("Guess my number! Secret - It is between 1 and 100 :") while (guess != number): if (guess > number): number = int(raw_i

Re: First python program, syntax error in while loop

2013-05-03 Thread ryankoch38
Okay, thank you very much for the timely replies, heres what i have now: title = "Guess my number game:" print title.title() raw_input("Press any key to continue..") import random number = random.randrange(99) + 1 tries = 0 guess = int(raw_input("Guess my number! Secret - It is between 1 and 100

Re: First python program, syntax error in while loop

2013-05-03 Thread ryankoch38
Oh wow I can't believed I derped that hard Thanks Lol. -- http://mail.python.org/mailman/listinfo/python-list

Re: First python program, syntax error in while loop

2013-05-03 Thread ryankoch38
I've got it working! I'm really enjoying python :) But now i'd like to make it break out of the while loop when the user guesses more than 5 numbers and fails.. title = "Guess my number game:" print title.title() raw_input("Press any key to continue..") import random number = random.randra

Re: First python program, syntax error in while loop

2013-05-03 Thread ryankoch38
Thank you! It's 100% functional now, here's the final project: title = "Guess my number game:" print title.title() raw_input("Press any key to continue..") import random number = random.randrange(99) + 1 tries = 0 guess = int(raw_input("Guess my number! Secret - It is between 1 and 100 :")