Re: Guess the Number Repeat

2013-04-25 Thread Peter Otten
eschneide...@comcast.net wrote: > How do I make the following program play the 'guess the number game' > twice? > > import random > guessesTaken = 0 > print('Hello! What is your name?') > myName = input() > number = random.randint(1, 20) > print('Well, ' + myName + ', I am thinking of a number be

Guess the Number Repeat

2013-04-25 Thread eschneider92
How do I make the following program play the 'guess the number game' twice? import random guessesTaken = 0 print('Hello! What is your name?') myName = input() number = random.randint(1, 20) print('Well, ' + myName + ', I am thinking of a number between 1 and 20.') while guessesTaken < 6: print