[Tutor] Issue w/ while loops
Here's an example where naming the while loop might be helpful in making the code easier to understand. Or not. : P Let's see what this might look like.
Here's an example where naming the while loop might be helpful in making the code easier to understand. Or not. : P Let's see what this might look like.
implicite remain in while loop. try-except is explained in the tutorial: doc/tut/node10.html. You will need to learn this anyway (in case not already done :-) Michael. Example for input (at interactive interpreter): >>> j = input("hey, experts, give me an object! ") hey, experts, give me an object!
So did your code print the string 10 times? When asking for help, it's useful to show what you tried, and what was expected, and what actually resulted.You're supposed to use iteration, specifically the while loop. Your while loop doesn't quit after 10 times, it keeps going.
If you want to learn how to write code, and you are a beginner, use the simplest text editor on your computer, learn to open a shell and run python interactively and run programs that you saved with your text editors. Be glad for simplicity.