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

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.

主站蜘蛛池模板: 阿巴嘎旗| 比如县| 略阳县| 佛冈县| 武城县| 津南区| 万荣县| 班戈县| 巴林左旗| 布尔津县| 井冈山市| 红河县| 海安县| 衡南县| 丰台区| 浦城县| 长海县| 海伦市| 卢湾区| 南陵县| 霍邱县| 苏尼特左旗| 莱西市| 凤山县| 水城县| 留坝县| 门头沟区| 清水河县| 亳州市| 灵丘县| 大名县| 资兴市| 噶尔县| 贵港市| 虞城县| 江西省| 乌拉特中旗| 三都| 瓮安县| 上饶县| 保亭|