- 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.
推薦閱讀
- The Complete Rust Programming Reference Guide
- Java Web開發(fā)學習手冊
- AngularJS Testing Cookbook
- Python金融數(shù)據(jù)分析
- Windows Server 2016 Automation with PowerShell Cookbook(Second Edition)
- C程序設計實踐教程
- MATLAB for Machine Learning
- 深入理解Elasticsearch(原書第3版)
- HTML 5與CSS 3權(quán)威指南(第3版·上冊)
- Swift 4 Protocol-Oriented Programming(Third Edition)
- Advanced Express Web Application Development
- Java零基礎實戰(zhàn)
- OpenCV with Python By Example
- 自學Python:編程基礎、科學計算及數(shù)據(jù)分析(第2版)
- Mastering Elixir