官术网_书友最值得收藏!

  • 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:

  1.  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:
  1. Navigate to the chapter2 folder that you just created and click OK.
  2. 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:
  1. 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.
  1. 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!")
  1. 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.

主站蜘蛛池模板: 江永县| 南通市| 厦门市| 洛川县| 城固县| 营山县| 金堂县| 饶平县| 互助| 镇远县| 准格尔旗| 岳阳县| 察雅县| 肃宁县| 德庆县| SHOW| 济南市| 陇川县| 潼关县| 故城县| 泽州县| 平塘县| 柳江县| 平泉县| 稻城县| 虹口区| 汉阴县| 汪清县| 财经| 房山区| 新蔡县| 宣化县| 栾川县| 田阳县| 漯河市| 封开县| 福泉市| 图木舒克市| 亚东县| 赞皇县| 景洪市|