In the pre-recorded lectures today we’ll talk about two new programming ideas.
The first is the idea of try/except
. It would be enormously bogus if every time our program ran into an error, it just crashes and stops. Up until now, that’s been our only option…but what if we had a “backup plan” ready to go for our program. Is it possible to “gracefully” keep going rather than just crashing?
The second topic is the idea of file reading and writing. Last time, we talked about receiving data from the internet. What if we’ve already got the data in a file on our computer. How can we get that into Python? Or how can we create files from Python?
Today's Resources
1. Exercise Files
Download Exercise Files2. Slides
3. Pre-Recorded Lecture Video(s), Mini-Quizzes, and Live Recordings
Link | Title | Type | Duration |
---|---|---|---|
Video 1 | Error Handling | pre-recorded | 8:00 |
Video 2 | File Intro | pre-recorded | 3:50 |
Video 3 | Files Syntax + Helpful Methods | pre-recorded | 4:33 |
Video 4 | Reading from Files (MQ - No Longer Available) | video_quiz | 11:57 |
Video 5 | (Bonus) Writing Files Challenges | pre-recorded | 3:19 |
Video 6 | (Bonus) Data Validation Example | pre-recorded | 14:20 |