Life is short, I am happy to learn Python! 1. The variable

Python variable acquaintance

Variable name: only letters, data, and underscores, but can not start with a number.

Keywords can not do variable, and do not repeat and built-in Python, keywords include:

 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'exec', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'not', 'or', 'pass', 'print', 'raise', 'return', 'try', 'while', 'with', 'yield'

= N1 ' Life is short ' 
n2 = ' I want to learn Python ' 
Print (N1)
 Print (n2)

N1 and n2 code is variable, print output is n1, n2

Guess you like

Origin www.cnblogs.com/ntgale/p/12070212.html