Discussion:
[Tutor] Python Help
Grace Anne St Clair-Bates
2015-05-04 05:00:06 UTC
Permalink
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
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Peter Otten
2015-05-04 07:37:51 UTC
Permalink
Post by Grace Anne St Clair-Bates
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
Write a small example script that shows the problem. Post it here so that we
have something to start the discussion.

Do not attach the script to your mail, put it into the body as plain text.
Only then everyone can see your code.

Thank you.


_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-05-04 07:38:32 UTC
Permalink
Post by Grace Anne St Clair-Bates
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


_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Continue reading on narkive:
Loading...