How to write and run your very first program 2
Now put just one line into your newly opened and named editor window.
The line looks like this:
print("Hisssss...")
You can use the clipboard to copy the text into the file.
We're not going to explain the meaning of the program right now. You'll find a detailed discussion in the next chapter.
Take a closer look at the quotation marks. These are the simplest form of quotation marks (neutral, straight, dumb, etc. ) commonly used in source files. Do not try to use typographic quotes (curved, curly, smart, etc.), used by advanced text processors, as Python doesn't accept them.
Save the file (File->Save) and run the program (Run->Run Module).
If everything goes okay and there are no mistakes in the code. the console window will show you the effects caused by running the program.
in this case, the program hisses.
Try to run it once again. And once more.
Now close both windows now and return to the desktop.
How to spoil and fix your code 1
Now sart IDLE (Integrated Development and Learning Environment) again.
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.
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.