How to write a python program: first open the python IDE; then click "file→new file" to create a new file; then write the python program in the file; finally click save and run directly to return the result. .
#With the advent of the era of big data and artificial intelligence, python is becoming more and more popular, and more and more people are starting to learn the python language. Today I will teach you how to write a program in python.
Usually a programmer's first program is "hello world", which represents the first greeting to the programming world.
Open the IDE that comes with python, ctrl n to create a new folder, and write print("hello world") as follows
Click to save and run (shortcut key F5), the file name must end with .py! The running results are as follows
The above is the detailed content of How to write a python program. For more information, please follow other related articles on the PHP Chinese website!