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!
-
43:43
CS50 Harvard
5 months agoCS50 Seminars 2024 - Lights, Data, Action!
971 -
6:44:51
Dr Disrespect
7 hours ago🔴LIVE - DR DISRESPECT - IMPOSSIBLE 5 CHICKEN DINNER CHALLENGE - FEAT. VISS
81.1K15 -
LIVE
The Jimmy Dore Show
1 hour agoTrump Administration Sends Accused Pedo BACK TO ISRAEL! Ukrainians Now OVERWHELMINGLY Oppose War!
5,762 watching -
1:09:21
TheCrucible
3 hours agoThe Extravaganza! Ep. 24 (8/20/25)
45.1K2 -
1:18:42
Kim Iversen
3 hours agoUFO Base Area 51 Catches Fire… Is It a Massive Cover-Up?!
17K39 -
1:51:18
Redacted News
3 hours ago"There will be consequences!!!" Trump issues big threat to Putin ahead of peace summit | Redacted
84.7K59 -
53:14
Candace Show Podcast
3 hours agoThe MOST MORAL Blackmail In The World | Candace EP 231
35.2K121 -
1:11:28
vivafrei
4 hours agoMatt Taibbi Getting "Westfalled"? Kathy Hochul Fighting for Illegals! Mamdani Minority Report & MORE
85.7K50 -
2:03:39
Pop Culture Crisis
5 hours agoWTF Happened to Miley Cyrus? HARRY POTTER Set Images, Sydney Sweeney Hater EXPOSED | Ep. 901
30.5K21 -
10:17
MattMorseTV
5 hours ago $7.13 earnedTrump's DOJ just DROPPED a NUKE.
39.1K38