Talk:Non-Programmer's Tutorial for Python 3/Count to 10

i am still confused about the "while" statement if you could clear that up for me it would be very helpful (alexander.polussa@gmail.com) -thanks
 * Could you figure out the exercise? Jrincayc (talk) 03:01, 1 July 2009 (UTC)

Extra comments
I somewhat dislike the long comment on the first program in the page. Is it confusing or looking out of place to others? Otherwise I think most of the recent changes are improvements. Jrincayc (talk) 04:04, 30 January 2010 (UTC)

I have been working the tutorials here for python 3 but I keep getting several errors on various tutorials. Mind you I am copying the text from the code box and placing directly in a text file and running it from the command prompt. I am not getting syntax errors so I am positive the code is right. I keep getting name errors on many of the programs. For instance the password program on Chapter 3; I placed the code verbatim from the page and when I run the program I get the prompt for the password but no matter what I enter (including the correct password 'unicorn') I get name errors such as this: "NameError: name 'unicorn' is not defined."

I can fix the issue by putting the code: unicorn = "unicorn", at the beginning of the program but that obviously wont do anything to fix the name errors if I were to enter any other string (ie.. incorrect password) which the tutorial states should cause the program to just reprint "Enter password". Please advise. Contact sm0ke42o@hotmail.com
 * Anyone else getting this error? Jrincayc (talk) 03:02, 14 July 2010 (UTC)

Yes, I get the same error... please can you post a solution here or mail me (h_manoj@yahoo.com)? Thanks, Manoj.

While loop
The while loop is not Pythonic. Better code would be: for i in range(1,10):print(i)

over use of varyables
 * While you did change the examples, you forgot to update the text along with these examples. You now have a while loop introduced by using a for loop example, a statement concerning use of the == operator when one doesn't exist, and so on.  The correct procedure is to introduce the for control structure, something which is already done later in the book (and is visible from the ToC).  There's also no overuse of variables, considering that you still had the same number of variables. You didn't mention why you need range(1,11) instead of (1,10) in your example, which will confuse non-programmers.  As such, I'm forced to reject the change. --Sigma 7 (discuss • contribs) 18:30, 14 February 2013 (UTC)

Fibonacci-method2.py
The code says: count = 0 and max_count=20. The statement is While max_count < 20: Running Fibonaccy-method2.py is giving 40 results, so max_count seemes to become 40. Should not the output from Fibonacci-method1.py be the same as the output from Fibonaccci-method2.py. (When using max_count=10 in Fibonacc-method2.py the results are identical.) What's my missing link?

Count to 10 Exercise
The Exercise at the end of "Count to 10" is very practical. However, it contains commands (e.g., "command" and "key") that were not previously introduced. As this is a "Non-Programmer's Tutorial", readers will likely not be able to solve the exercise (at least not as given in the solution). Perhaps introducing these commands prior or providing a solution with only known commands would help with continuity and flow.