I'm reading an online python tutorial book from here. The code is listed below. When I execute the code, I can type words into it but then it gave me the error below. What is the wrong with the code?
On a related note, if you have a better resource for leaning python, please let me know. I'm looking for one that is online and updated often (ex: railstutorial.org). The resource I am using have plenty of errors even this early in the book. Thanks.
Enter something : programmig is fun Traceback (most recent call last): File "break.py", line 5, in <module> s = input('Enter something : ') File "<string>", line 1, in <module> NameError: name 'programmig' is not defined #!/usr/bin/python # Filename: break.py while True: s = input('Enter something : ') if s == 'quit': break print('Length of the string is', len(s)) print('Done')