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

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.

主站蜘蛛池模板: 高密市| 广德县| 深水埗区| 阿拉尔市| 深圳市| 克什克腾旗| 伊宁市| 卢氏县| 霸州市| 石台县| 绍兴县| 临颍县| 烟台市| 察哈| 志丹县| 南通市| 余干县| 宁德市| 城步| 临颍县| 潢川县| 洮南市| 吉林省| 永定县| 句容市| 五莲县| 天台县| 买车| 上饶市| 宁蒗| 东方市| 罗山县| 通榆县| 淮北市| 东阳市| 垣曲县| 凤冈县| 东乌珠穆沁旗| 扬中市| 德格县| 和林格尔县|