Home  >  Article  >  Backend Development  >  What does n mean in python?

What does n mean in python?

藏色散人
藏色散人Original
2019-05-21 17:48:3732583browse

Python is a computer programming language. It is an object-oriented dynamic type language that was originally designed for writing automated scripts (shells). With the continuous updates of the version and the addition of new language features, it is increasingly used for the development of independent and large-scale projects.

What does n mean in python?

What does n mean in python?

N in python means new line, that is, starting a new line. "\n" represents a new line, and a new line is printed. The "\" symbol means that the sentence is too long when writing the program, and "\" is added after the artificial line break, but it prints out a whole line.

For example:

print "hello\nworld"

The effect is:

hello
world

"\n" is a newline character.

The above is the detailed content of What does n mean in python?. 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