- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 112字
- 2021-07-09 20:40:21
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.
推薦閱讀
- 深入淺出Spring Boot 2.x
- Python王者歸來
- Swift 3 New Features
- Learning Data Mining with R
- Mathematica Data Analysis
- Nginx實戰:基于Lua語言的配置、開發與架構詳解
- 利用Python進行數據分析
- OpenGL Data Visualization Cookbook
- INSTANT Yii 1.1 Application Development Starter
- C++語言程序設計
- WordPress Search Engine Optimization(Second Edition)
- Learning Shiny
- 計算機系統解密:從理解計算機到編寫高效代碼
- C Primer Plus(第6版)中文版【最新修訂版】
- JavaScript Unit Testing