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!
-
1:05:48
Mikhaila Peterson
5 days agoDoctor On The Carnivore Diet and Fertility | Robert Kiltz EP 218
62.3K31 -
2:46:06
DDayCobra
11 hours ago $18.05 earnedCobraCast 199
69.9K8 -
2:07:27
TheSaltyCracker
11 hours agoTrump Tower Bombed w/ Cybertruck ReeEEeE Stream 01-01-25
172K359 -
8:15:58
FreshandFit
17 hours agoElon Musk BETRAYAL & Mass Censorship On X
219K94 -
2:25:43
Darkhorse Podcast
18 hours agoLooking Back and Looking Forward: The 258 Evolutionary Lens with Bret Weinstein and Heather Heying
192K211 -
5:50:16
Pepkilla
17 hours agoRanked Warzone ~ Are we getting to platinum today or waaa
126K7 -
9:15:09
BrancoFXDC
15 hours ago $9.56 earnedHAPPY NEW YEARS - Road to Platinum - Ranked Warzone
107K4 -
5:53
SLS - Street League Skateboarding
5 days agoBraden Hoban’s San Diego Roots & Hometown Win | Kona Big Wave “Beyond The Ride” Part 2
111K14 -
6:03:57
TheBedBug
20 hours ago🔴 LIVE: EPIC CROSSOVER - PATH OF EXILE 2 x MARVEL RIVALS
109K9 -
1:12:45
The Quartering
17 hours agoTerror In New Orleans, Attacker Unmasked, Tesla BLOWS UP At Trump Tower! Are We Under Attack?
172K268