Second steps
- Modules
- A main function
- The main function - called
- Indentation
- Conditional main
- Input - Output I/O
- print in Python 2
- print in Python 3
- print in Python 2 as if it was Python 3
- Exception: SyntaxError: Missing parentheses in call
- Prompting for user input in Python 2
- Prompting for user input in Python 3
- Python2 input or raw_input?
- Prompting both Python 2 and Python 3
- Add numbers entered by the user (oups)
- Add numbers entered by the user (fixed)
- Can we convert a string to int or float?
- How can I check if a string can be converted to a number?
- Converting string to int
- Converting float to int
- How can I check if a string can be converted to a number?
- Conditionals: if
- Conditionals: if - else
- Divide by 0
- Conditionals: if - else (other example)
- Conditionals: else if
- Conditionals: elif
- Ternary operator (Conditional Operator)
- Case or Switch in Python
- Exercise: Rectangle
- Exercise: Calculator
- Exercise: Age limit
- Exercise: What is this language?
- Exercise: Standard Input
- Solution: Area of rectangle
- Solution: Calculator
- Solution: Calculator eval
- Solution: Age limit
- Solution: What is this language?
- STDIN vs Command line arguments
- Command line arguments
- Command line arguments - len
- Command line arguments - exit
- Exercise: Rectangle (argv)
- Exercise: Calculator (argv)
- Solution: Area of rectangle (argv)
- Solution: Calculator (argv)
- Solution: Calculator eval
- Compilation vs. Interpretation
- Is Python compiled or interpreted?
- Flake8 checking
- Pylint checking