Python
The best place to start if you've never coded. From print and variables to functions, lists and dictionaries, then searching, sorting and recursion, modules, files and classes, ending with six small projects.
Chapters
- Variables (Strings)
- Variables (Integers)
- Print F-strings
- Recap: Player Card
- Comments
- If/Else
- If/Elif/Else
- Recap: Ticket Booth
- For Loops
- Input
- While Loops
- Break and Continue
- Booleans
- Recap: Launch Console
- Operators
- Functions
- String Methods
- Lists
- Looping over Lists
- Recap: Supply Run
- Slicing with Steps and Negative Indexes
- Split and Join
- Formatting Numbers
- Characters and Their Codes
- Recap: Systems Report
- Return Values
- Dictionaries
- Looping over Dictionaries
- Recap: Mission Control Report
- Tuples
- Sets
- Nested Loops
- List Comprehension
- Recap: Crew Analysis
- Scope
- Default Parameters
- Multiple Return Values
- Try / Except
- Recap: Telemetry Toolkit
- Built-in Functions
- Problem Decomposition
- Pattern: Counter
- Pattern: Accumulator
- Pattern: Flag
- Recap: Mission Log Analyzer
- Range with Steps
- Enumerate
- Zip
- Nested Lists and Dictionaries
- Recap: Cargo Manifest
- Keyword Arguments
- *args
- **kwargs
- Lambda
- Sorted with Key
- Map and Filter
- Recap: Crew Roster
- Dictionary and Set Comprehensions
- Generators and Yield
- Generator Expressions
- Recap: Sensor Stream
- Linear Search
- Frequency Dictionary
- Bubble Sort
- Selection Sort
- Recap: Mission Leaderboard
- Reverse a String
- Palindrome
- Anagram
- Filter and Transform
- Two Pointers
- Recap: Transmission Toolkit
- Recursion
- Recursion Practice
- Matrices (2D Lists)
- Binary Search
- Recap: Sector Scan
- Import
- The math Module
- The random Module
- The collections Module
- The datetime Module
- Recap: Launch Planner
- Writing a File
- Reading a File
- With
- Reading Line by Line
- JSON
- Recap: Station Logbook
- Classes and Objects
- __init__
- Methods
- __str__
- Class Attributes
- Recap: Robot Crew
- Inheritance
- super()
- Overriding Methods
- Comparing Objects
- Dataclasses
- Recap: Fleet Registry
- Raise
- Your Own Exceptions
- Else and Finally
- Recap: Airlock Control
- Project: Guessing Game
- Project: Quiz Game
- Project: To-Do List
- Project: Bank Account
- Project: Cargo Inventory
- Project: Grade Report