Python (2026-02-02 - 2026-02-04)#

Setup#

Datatypes#

Exercises

More On Datatypes#

Control Flow: if, while, for#

Functions And Generators#

Functions

Generators

Encoding, And File I/O#

Modules, And The import Statement#

Object Oriented Programming, And Exceptions#

From Object Oriented Programming

Exceptions too, are objects:

Closures And Decorators#

Context Managers (The with Statement)#

Parallelizing Code (Various Ways To Be Async)#

  • Multithreading

    • threading.Thread, using time.sleep(): two seperate function for interval, then parameterized

    • Termination

      • running flag

      • daemon

      • KeyboardInterrupt, signal.pause()

    • Thread safety, Lock, with

  • Multiprocessing: demo

  • asyncio: demo

Project Work: Virtual Environments, Unit Testing, PyPI#

From Python: Project/Package Management,

Big Data: Pandas, And Databases#

From Pandas

From Databases

Performance and large datasets: https://pythonspeed.com/articles/pandas-sql-chunking/