1.2.1.7 Begin your Python journey
How to spoil and fix your code
Watch all the windows carefully.
A new window appears – it says that the interpreter has encountered an EOF (end-of-file) although (in its opinion) the code should contain some more text.
The editor window shows clearly where it happened.

Fix the code now. It should look like this:
print("Hisssssss...")
Run it to see if it "hisses" again.
Let's spoil the code one more time. Remove one letter from the word print. Run the code by pressing F5. As you can see, Python is not able to recognize the error.

Comments
Post a Comment