Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

How to spoil and fix your code 1

Now sart IDLE (Integrated Development and Learning Environment) again.

  • Click File, Open, point to the file you saved previously and let IDLE read it in. 
  • Try to run it again by pressing F5 when the editor window is active

As you can see, IDLE is able to save your code and retrieve it when you need it again. 

IDLE contains one additional helpful feature. 

  • First, remove the closing parenthesis
  • Then enter the parenthesis again

Every time you put the closing parenthesis in your program, IDLE will show the part of the text limited with a pair of corresponding parentheses. This helps you to remember to place them in pairs. 

Remove the closing parenthesis again. The code becomes erroneous. It contains a syntax error now. IDLE should not let you run it. 

Try to run the program again. IDLE will remind you to save the modified file. Follow the instructions. 

How to spoil and fix your code 2

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 contains some more text. 

The editor window shows clearly where it happened. 

Fix the code now. It should look like this: 

print("Hissssss...")

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. What happens now? As you can see, Python is not able to recognize the instruction.