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

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.

主站蜘蛛池模板: 扎囊县| 宾川县| 大新县| 山阴县| 芷江| 金川县| 武平县| 商南县| 漳浦县| 雷山县| 龙游县| 安化县| 新民市| 凌云县| 岱山县| 湛江市| 虹口区| 兴义市| 霍州市| 滨海县| 县级市| 香河县| 湘潭县| 华亭县| 德惠市| 西平县| 屯昌县| 柳州市| 贡山| 宜城市| 徐闻县| 河南省| 吉首市| 德庆县| 万安县| 望城县| 济宁市| 都昌县| 将乐县| 彩票| 油尖旺区|