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

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.

主站蜘蛛池模板: 夏邑县| 诸暨市| 汉川市| 荔浦县| 昌都县| 剑阁县| 黄浦区| 临城县| 枣阳市| 达孜县| 郧西县| 建宁县| 广安市| 繁峙县| 龙口市| 织金县| 喀喇沁旗| 河西区| 宁远县| 肥城市| 禹州市| 诏安县| 绥阳县| 浙江省| 宝清县| 江源县| 太湖县| 福清市| 河东区| 南宁市| 尼玛县| 荆门市| 大丰市| 武山县| 靖西县| 卢湾区| 察雅县| 彭水| 固始县| 民丰县| 常德市|