1.2.1.5 Begin your Python journey
How to write and run your very first program
Now put just one line into your newly opened and named editor window.
The line looks like this:
print("Hisssssss...")
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.

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.

Comments
Post a Comment