In the following steps, you will build your first python program:
Createan empty folder somewhere in your file system calledchapter2. Once you have created thechapter2folder, open up Atom and add the folder to the file tree by selectingFile | Add Project Folder as follows:
Navigate to thechapter2folder that you just created and click OK.
You should see thechapter2 folder in the file tree, which is usually on the left panel. If the tree is not there, you may need to show it by selecting View | Toggle Tree View:
Within thechapter2folder, create a new file calledhello_world.py by right-clicking on thechapter2folder from the file tree and selecting New File:
In general, you can use the file tree panel as a direct interface to create, delete, open, move and manage files and folders within the base directory.
Openhello_world.pyby clicking on the file in the file tree. A blank text editing tab should open up for the file. Type the following text:
print("Hello World!")
Finally, save the file by selecting File|Save:
That's it! You've created your first program in Python! The next step is to execute the program.