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

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.

主站蜘蛛池模板: 瓮安县| 凤冈县| 嘉定区| 淳化县| 合江县| 扬州市| 大化| 广元市| 白城市| 师宗县| 象山县| 墨脱县| 景德镇市| 宕昌县| 泾川县| 肥东县| 仁寿县| 青岛市| 南漳县| 建水县| 葵青区| 襄垣县| 汽车| 绩溪县| 峨眉山市| 宝兴县| 南郑县| 聂拉木县| 迁西县| 平遥县| 普兰店市| 滨海县| 陇南市| 饶阳县| 宣化县| 安多县| 延长县| 祥云县| 龙门县| 宁海县| 江华|