[Tutor] Python Help

Alan Gauld alan.gauld at btinternet.com
Mon May 4 09:38:32 CEST 2015


On 04/05/15 06:00, Grace Anne St Clair-Bates wrote:
> I am trying to write a program that uses while and if loops, but my print
> statements are not going through and showing up when I run the module. I
> have tried numerous things and changed in the code and cannot for the life
> of me figure out why it won't print. If someone could help that would be
> amazing. Thank you

To help you would need to show us the code.
We are not mind readers.

Also post any error messages you get, they
are full of useful information once you
learn how to read them.

Finally, please tell us which Python version you are using,
which OS and which tutorial or book you are using.

With that information available we can try to help.

But note: if *statements* are not *loops*.
*loops* are bits of code that repeat zero or more times.
*if statements* are bits of code that may or may not
execute depending on some test result.

In programming it is very important to be precise
in your language. Otherwise we all get very confused
about what you mean.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list