Home  >  Article  >  Backend Development  >  How to write a python program

How to write a python program

silencement
silencementOriginal
2019-05-18 17:00:3625291browse

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. .

How to write a python program

#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

How to write a python program

How to write a python program

Click to save and run (shortcut key F5), the file name must end with .py! The running results are as follows

How to write a python program

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn