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
whileforinrange
- Conditionals
if
Structuring programs
- Comments
# This is a comment
- Functions
def
- Libraries
import- Create
Advanced concepts
- Classes
class__init__selfdef
- Objects
- Create
- Method call
- Code documentation
- Block level strings
"""This string can span multiple lines"""
- Block level strings
- Lambdas
lambda