Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Future-Proof Your Career: AI Manager Masterclass
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Learn how to write to and read files using Python in this comprehensive tutorial. Explore file permissions, writing text and HTML to files, ASCII text formatting, reading file contents into variables, understanding file modes, changing file paths and working directories, and creating HTML reports from CSV data. Gain practical skills through a hands-on example of generating an HTML report from CSV information. Master essential file handling techniques to enhance your Python programming capabilities.
Syllabus
Intro
Permissions
Write to File
Write HTML to File
ACII Formatting Text
Read File Into Variable Value
File Modes
Change File Path
Change Current Working Directory
Create an HTML Report from CSV Example
Final Thoughts
Taught by
Eli the Computer Guy