- Python
- Language
- Hello World ♣
- Variables
- Functions
- Conditional
- Operators
- While
- Turtle
- Script Mode
- Debugging
- Strings
- Slice
- Raw Strings
- Validation
- Config
- Security
- Collections
- Lists
- Dictionaries
- Efficiency
- Tree
- Iterator
- Tuples
- References
- Functions
- Recursion
- Factorial
- Modulus
- Reassignment
- Approximate
-
Hello World
- Command line
- File .py
- Mistakes
Click to Flip Card
Language / Hello World
We can run Python command from comand line. Python script can run from a .py file. Making mistakes on purpose helps you to remember.
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: 55 days ago