Files, Paths and Data Formats
Learn Eva
0:00 / 0:00
Files, Paths and Data Formats
6 просмотров · 7 дн. назад
Learn Eva
50 подписчиков
6 просмотров · 7 дн. назад
Complete Python Basics, Module 11 of 17: Files, Paths and Data Formats
Taught by Touqeer Abbas. Absolute beginner to confident Python fundamentals.
In this module you will:
Open text files with the right mode and encoding='utf-8'
Read, write and append safely with the with statement
Build file paths with pathlib, and tell relative from absolute paths
Save and load tables with csv.writer, DictWriter and DictReader
Save and load structured data with json.dump, json.load, dumps and loads
Handle missing files and save data without losing it
Chapters:
0:00 Welcome
1:03 Opening files and UTF-8
2:13 Read, write, append, with
3:33 pathlib and file paths
4:31 CSV files for tables
5:59 JSON for structured data
8:01 Missing files, safe saving
8:44 Examples
11:11 Common mistakes
11:42 Quiz
13:02 Practice
13:50 Summary
14:17 Wrap-u