Category: Python

Python Tutorial / Remove Duplicates with Sets and Choose Collections
Apply set membership, union, intersection and difference, distinguish remove from discard, and choose a collection without losing meaningful duplicates.

Python Tutorial / Store Key–Value Data with Dictionaries
Use dictionaries for named fields and grouped totals, distinguish required lookups from get defaults, and handle key normalization and mutation safely.

Python Tutorial / Understand Tuples and Sequence Unpacking
Create tuples, unpack fixed and variable-length sequences, and understand nested mutability, hashability and when named fields improve a record.

Python Tutorial / Create Lists and Add, Change and Remove Items
Create and modify lists, compare append with extend and sorted with sort, and avoid common empty-list, copying and iteration mistakes.

Python Tutorial / Work with Strings, Slices and Formatting
Use string indexing, slicing, strip, split, join and f-strings while distinguishing immutable text, Unicode length and structured-data parsing.

Python Tutorial / Understand Integers, Floats and Numeric Conversion
Compare int, float and Decimal, understand negative floor division and choose explicit conversion and precision rules for expense calculations.

Python Tutorial / Build a First Program with Variables, Input and Output
Read expense input, convert text to an integer and format a result. Understand assignment, comments, f-strings and the source of common conversion errors.

Python Tutorial / Create Virtual Environments and Manage Packages with pip
Use venv and python -m pip to separate projects, record dependencies and troubleshoot interpreter, package and activation problems.

Python Tutorial / Write and Run Python in VS Code
Choose a virtual-environment interpreter in VS Code, run a complete Python script and use a breakpoint to check values while diagnosing environment mismatches.

Python Tutorial / Set Up Python on macOS and Ubuntu
Prepare a Python development environment on macOS or Ubuntu without replacing system Python. Verify paths, create a virtual environment and test execution.