Back to course overview
Python Fundamentals
Files, Modules, and Packages
Read and write text and CSV files, use the standard library (math, statistics, datetime), and organise code with a first class.
3 lessons ยท 2h 24m
- 1hReading and writing filesReading
Open text files safely with `with`, read CSV data with the csv module and write a summary file.
- 42mModules and the standard libraryReading
Import modules, use math, statistics and datetime from the standard library, and know when to reach for a package.
- 42mObjects and classes (intro)Reading
Define a small class with an __init__ method, attributes and methods that work on the object's own data.