Skip to main content Brad's PyNotes

Posts on Tutorial

  1. Appetite Tutorial

    TL;DR

    Python excels at automation and rapid development with its simple syntax, powerful features, and “batteries included” philosophy - perfect for getting things done quickly.

  2. Informal Intro Tutorial

    TL;DR

    Python’s interactive interpreter lets you experiment immediately with numbers, strings, and lists using intuitive syntax and meaningful indentation.

    Interesting!

    Python uses indentation instead of braces to define code blocks - making the visual structure of your code match its logical structure!

  3. Input Output Tutorial

    TL;DR

    Python provides multiple string formatting methods (f-strings, .format(), manual), file operations with context managers, and JSON serialization for data exchange.

    Interesting!

    F-strings can execute any Python expression inside the braces - you can even call functions and perform calculations right inside the string!

  4. Errors and Exceptions Tutorial: Robust Error Handling in Python

    TL;DR

    Python handles errors through exceptions using try/except/finally blocks, with built-in exception types like ValueError, TypeError, and FileNotFoundError, plus the ability to create custom exceptions and proper error handling patterns.

  5. Classes: Object-Oriented Programming in Python

    TL;DR

    Python classes bundle data and functionality together, supporting inheritance, method overriding, and special methods for creating powerful, reusable object-oriented code.

    Interesting!

    Python’s “everything is an object” philosophy means even classes are objects - you can inspect class attributes, pass classes as arguments, and create classes dynamically at runtime.