Intro Python: Files by Reuven M. Lerner

Intro Python: Files

What's included?

Video Icon 34 videos File Icon 3 files

Contents

Introduction
00 Intro
2 mins
01 Files, filesystems, and file objects
6 mins
Section 1: Basic operations
Section 1 — Basic operations.ipynb
184 KB
02 Opening files
5 mins
03 Absolute and relative paths
8 mins
04 Exceptions
6 mins
05 Reading from files
11 mins
06 Iterating over files
7 mins
07 Filtering
5 mins
08 Comprehensions
3 mins
09 Exercises 1
3 mins
10 Exercise solutions 1
8 mins
11 Closing files
6 mins
12 Using "with"
7 mins
13 Closing files in "for" loops
3 mins
14 Exercises 2.mp4
2 mins
15 Exercise 2 solutions
6 mins
16 os.listdir and os.path.join
7 mins
17 glob.glob
7 mins
Section 2: Writing to files
Section 2 — Writing to files.ipynb
20.2 KB
18 Writing to files
13 mins
19 Appending with "a"
4 mins
20 Line-buffered output
4 mins
21 print and sys.stdout
6 mins
22 sys.stderr and redefining sys.stdout
5 mins
Section 3: Encoding and bytes
Section 3 — Encodings, byte strings, and binary files.ipynb
29.6 KB
28 Strings and bytestrings
9 mins
29 Reading and writing bytes
7 mins
30 Identifying JPEGs by their bytes
6 mins
31 Exercises 4
1 min
32 Exercise 4 answers
7 mins
Section 4: Advanced techniques
33 Moving around with "seek" and "tell"
10 mins
34 Working with r+, w+, and a+ modes
8 mins
35 Newlines
10 mins
36 sys.stdin
7 mins
38 StringIO
4 mins
37 os.path
6 mins