Previous | Next


Like most of the general-purpose programming languages, Python programs are made up of statements and expressions.

Sample expressions in Python:

>>> x = y + z

>>> x = 100 + 200

>>> name = 'John' + 'Paw'

Sample statements in Python:

>>> print x
300

>>> print name
John Paw

 


Previous | Next