minte9
LearnRemember




Command line

Print Hello World from command line.
 
$ python

>>> print('Hello World') # Hello World

File .py

Print Hello World from script (a file with .py extension).
 
""" hello.py
python hello.py
"""

print('Hello World') # Hello World

Mistakes

When learning new features try to make mistakes on purpose.
 
""" Making mistakes on purpose, helps to remember
print 'Hello World' # SyntaxError
"""

print('Hello World') # Hello World



  Last update: 227 days ago