Python Tutorials
Follow beginner-friendly Python tutorials covering setup, printing, variables, data types, collections, control flow, and loops.
- Installing Python & VS Code
- Running Python Code
- Variables
- Basic Errors
- Python Roadmap
- print()
- Printing Multiple Values
- New Lines and Escape Characters
- Comments
- Debugging With Print
- Strings
- Integers
- Floats
- Booleans
- None
- Type Conversion
- Checking Types
- Why Format Strings?
- f-strings
- Formatting Numbers
- Multi-line Strings
- Lists
- Dictionaries
- Sets
- Tuples
- Choosing the Right Collection
- Indexing, Membership, and Length
- What Built-ins Are
- Conversion and Type Built-ins
- Collection Built-ins
- Input and Output Built-ins
- Built-in Function Registry
- Conditions
- if
- if / else
- elif
- Nested Conditions
- Common Mistakes
- File Paths and open()
- Reading Files
- Writing Files
- Appending Files
- File Errors and with
- Looping Over Lists
- Looping Over Strings
- range()
- break
- continue
- Building New Lists With Loops
- Basic while Loops
- Loop Conditions
- Counters
- Sentinel Loops
- Avoiding Infinite Loops
- while vs for
- What Functions Are For
- Defining and Calling Functions
- Parameters and Arguments
- Return Values
- Scope, Defaults, and Mistakes
- What Exceptions Are
- try / except
- Specific Exceptions
- else and finally
- raise and Validation
- List Comprehensions
- Filtering in Comprehensions
- Dictionary Comprehensions
- Set Comprehensions
- Readability and Common Mistakes