[Tutor] While loop homework: was Re: Tutor Digest, Vol 161, Issue 33

Alan Gauld alan.gauld at yahoo.co.uk
Sun Jul 30 19:05:39 EDT 2017

On 30/07/17 23:36, Borisco Bizaro wrote:

> a=1
> b=2
> while a<b:
>   input ("enter another price :")

Do 'a' or 'b' ever change?
Does 'a<b' ever become false?
Does the while loop ever stop?

Do you store the value of the input() function anywhere?

> print"\n\n press 0 key to stop"

Does the user ever get the chance to enter a value?
If they were, Where is the value stored and is the
value ever used?

>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Tutor digest..."

Please follow the instructions as requested.
It helps find answers in the archives.

Alan G
Author of the Learn to Program web site
Follow my photo-blog on Flickr at:

More information about the Tutor mailing list