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
LumpyPotatoX2
2 hours agoHunt Shadows Family Sunday - #RumbleGaming
457 watching -
5:04
Film Threat
1 day agoA WORKING MAN | Film Threat Reviews
19.3K3 -
22:08
Misha Petrov
23 hours agoMain Character Syndrome Is Spreading
14.3K36 -
LIVE
DarknessGames
14 hours agoIT'S BACK! - Dark Souls II (Part 7)
105 watching -
28:30
CatfishedOnline
23 hours agoWoman Wants to Leave BF for Lover or Romance Scam?
18.1K9 -
LIVE
DookiePox
4 hours ago $0.10 earnedGood Morning. Sunday Morning.
47 watching -
LIVE
johnnymassacre
11 hours agoLet's Play Space Marine 2 | ANGEL OF DEATH MODE | Pt 3
162 watching -
18:07
Bearing
3 hours agoThe INSANE MENTAL DECLINE of the Democrats 💥 Lefties are NOT Ok
13.7K42 -
15:55
Clownfish TV
14 hours agoDisney and ABC Getting INVESTIGATED by the FCC Over DEI Policies?!
18.9K9 -
0:47
Rethinking the Dollar
1 day agoFrom $2K to $3K: Why Gold Is Skyrocketing
11.9K4