Click to Flip Card
Hello World
Can we run Python from CLI? Can we run Python from a file? How can you better learn new features better?
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: 177 days ago