Premium Only Content

CS50P - Lecture 6 - File I O
TABLE OF CONTENTS
00:00:00 - Introduction
00:00:24 - File I/O
00:01:17 - lists
00:05:54 - open
00:13:55 - with
00:21:39 - sorted
00:29:31 - Comma-Separated Values
00:46:37 - Sort Keys
00:53:01 - Lambda Functions
00:57:13 - csv Library
01:02:17 - csv.reader
01:07:49 - csv.DictReader
01:14:05 - csv.writer
01:16:28 - csv.DictWriter
01:23:00 - Images, PIL library
01:31:42 - Conclusion
An introduction to programming using a language called Python. Learn how to read and write code as well as how to test and "debug" it. Designed for students with or without prior programming experience who'd like to learn Python specifically. Learn about functions, arguments, and return values (oh my!); variables and types; conditionals and Boolean expressions; and loops. Learn how to handle exceptions, find and fix bugs, and write unit tests; use third-party libraries; validate and extract data with regular expressions; model real-world entities with classes, objects, methods, and properties; and read and write files. Hands-on opportunities for lots of practice. Exercises inspired by real-world programming problems. No software required except for a web browser, or you can write code on your own PC or Mac.
Whereas CS50x itself focuses on computer science more generally as well as programming with C, Python, SQL, and JavaScript, this course, aka CS50P, is entirely focused on programming with Python. You can take CS50P before CS50x, during CS50x, or after CS50x. But for an introduction to computer science itself, you should still take CS50x!
-
LIVE
Michael Franzese
2 hours agoLindy Li: DNC Insider Reveals Dark Truth About Biden, Kamala and Pelosi
1,386 watching -
1:17:20
Kim Iversen
4 hours agoFrom Tesla-Smashing to Jasmine Crockett-Stanning: Woke Unhinged Edition
86.3K41 -
1:34:17
Redacted News
3 hours agoNetanyahu Boasts Control Over Trump: Is Criticizing Israel About to Become Illegal?
92.8K175 -
1:15:09
vivafrei
7 hours agoVirginia Giuffrie "Accident"? FBI Dragging Its Feet? Tesla Vandal Arrested & SUED! & MORE!
98.4K53 -
56:01
Candace Show Podcast
4 hours agoBREAKING NEWS: I Got Served For ANOTHER Lawsuit | Candace Ep 169
80.8K100 -
44:47
The Football Terrace
5 hours agoLewis-Skelly ABUSE is DISGUSTING!😨 Goldbridge CALLS OUT Ferdinand & Man City 115 VERDICT🚨
13.1K -
17:03
VSOGunChannel
9 hours agoTaquito 22 Budget 22 Suppressor || Fletcher Rifle Works
17.6K1 -
2:13:41
The Quartering
6 hours agoMillions Of Illegals Given Social Security Numbers, Wisconsin Supreme Court Race, Star Wars & More
216K78 -
1:17:33
Awaken With JP
7 hours agoHitler Escaped to Argentina? (April Fools Special) - LIES Ep 85
82.5K47 -
1:57:21
Revenge of the Cis
5 hours agoEpisode 1467: Mid-Wife
43.1K2