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

Writing a simple Hello World! program

Congratulations on your successful installation. Now you can start programming. Open Notepad++ and create a new file. In the new file, type the following:

print "Hello World!" 

Save the file as hello.py.

Open the command prompt and traverse to the folder where your file is located using cd and then the path of the folder. For executing the file, the command will be python hello.py as shown in the following screenshot:

It is quite easy, isn't it? Likewise, you can execute all the Python files. Once you start working on projects and large files, it's always good to remain organized by creating a folder structure.

主站蜘蛛池模板: 威海市| 西峡县| 册亨县| 隆化县| 武陟县| 平原县| 贺兰县| 常山县| 永嘉县| 乡宁县| 和林格尔县| 阿鲁科尔沁旗| 牙克石市| 肃北| 太仓市| 昭平县| 翼城县| 五寨县| 宜阳县| 永善县| 孝义市| 淅川县| 涟水县| 信阳市| 安仁县| 双桥区| 宣恩县| 阿坝县| 麻城市| 井冈山市| 太湖县| 元朗区| 广饶县| 宝坻区| 德格县| 论坛| 西华县| 大悟县| 新干县| 房产| 黑山县|