Python concepts
Basics
- Program structure
- Syntax
- Types
- Numbers
1234
- Strings
"Hello!"
- Booleans
True
- Decimal numbers
9.87
- Lists
[1,2]
- Maps/dictionaries
{a:1,b:2}
- Numbers
- Variables
- Declare
a = "yes"
- Use
- Declare
Flow control
- Loops
while
for
in
range
- Conditionals
if
Structuring programs
- Comments
# This is a comment
- Functions
def
- Libraries
import
- Create
Advanced concepts
- Classes
class
__init__
self
def
- Objects
- Create
- Method call
- Code documentation
- Block level strings
"""This string can span multiple lines"""
- Block level strings
- Lambdas
lambda