Nested structures question

2011-01-12 Thread Physics Python
Hello, I am teaching myself python using the book: Python Programming for Absolute Beginners, 2nd edition by Michael Dawson. I am using python 2.7.1. In chapter 3 we are learning to use structures (while, if, elif) to write a program that has the user guess a number between 1 and 100. Here is

Re: Nested structures question

2011-01-12 Thread Physics Python
Thanks, Is this an indentation problem then? How do I update the sentinel within the secondary while loop. I am trying to avoid using breaks by the way, as I can program this example using breaks: --- start--- import random print \tWelcome to 'Guess my number'!: print \nI'm thinking of a number