









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This chapter from the Python programming course covers various aspects of functions and classes, including reading and writing files, handling exceptions, and storing data using JSON. Topics include reading an entire file, reading line by line, making a list of lines, writing to a file, handling ZeroDivisionError exceptions, and using try-except blocks. Students will also learn how to count the frequency of each word in a list of filenames and store data using JSON.
Typology: Schemes and Mind Maps
1 / 17
This page cannot be seen from the preview
Don't miss anything!










Lecturer: Nguyen Tuan Long, Phd Email: [email protected] Mobile: 0982 746 235
Note Windows systems use a backslash () instead of a forward slash (/) when displaying file paths, but you can still use forward slashes in your code.
The JSON (JavaScript Object Notation)