- Practical Data Wrangling
- Allan Visochek
- 238字
- 2021-07-02 15:16:07
Writing the hello world program
In the following steps, you will build your first python program:
- Create an empty folder somewhere in your file system called chapter2. Once you have created the chapter2 folder, open up Atom and add the folder to the file tree by selecting File | Add Project Folder as follows:

- Navigate to the chapter2 folder that you just created and click OK.
- You should see the chapter2 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 the chapter2 folder, create a new file called hello_world.py by right-clicking on the chapter2 folder 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.
- Open hello_world.py by 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.