How to write a python program

silencement
Release: 2020-09-18 09:39:41
Original
25288 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template