CS50P - Lecture 6 - File I/O
CS50 CS50
1.86M subscribers
255,719 views
0

 Published On Premiered Jul 22, 2022

This is CS50P, CS50's Introduction to Programming with Python. Enroll for free at https://cs50.edx.org/python. Slides, source code, and more at https://cs50.harvard.edu/python. Playlist at    • CS50's Introduction to Programming wi...  .

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!

***

HOW TO SUBSCRIBE

http://www.youtube.com/subscription_c...

HOW TO TAKE CS50

edX: https://cs50.edx.org/
Harvard Extension School: https://cs50.harvard.edu/extension
Harvard Summer School: https://cs50.harvard.edu/summer
OpenCourseWare: https://cs50.harvard.edu/x

HOW TO JOIN CS50 COMMUNITIES

Discord:   / discord  
Ed: https://cs50.harvard.edu/x/ed
Facebook Group:   / cs50  
Faceboook Page:   / cs50  
GitHub: https://github.com/cs50
Gitter: https://gitter.im/cs50/x
Instagram:   / cs50  
LinkedIn Group:   / 7437240  
LinkedIn Page:   / cs50  
Medium:   / cs50  
Quora: https://www.quora.com/topic/CS50
Reddit:   / cs50  
Slack: https://cs50.edx.org/slack
Snapchat:   / cs50  
SoundCloud:   / cs50  
Stack Exchange: https://cs50.stackexchange.com/
TikTok:   / cs50  
Twitter:   / cs50  
YouTube:    / cs50  

HOW TO FOLLOW DAVID J. MALAN

Facebook:   / dmalan  
GitHub: https://github.com/dmalan
Instagram:   / davidjmalan  
LinkedIn:   / malan  
Quora: https://www.quora.com/profile/David-J...
TikTok:   / davidjmalan  
Twitter:   / davidjmalan  

***

CS50 SHOP

https://cs50.harvardshop.com/

***

LICENSE

CC BY-NC-SA 4.0
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
https://creativecommons.org/licenses/...

David J. Malan
https://cs.harvard.edu/malan
[email protected]

show more

Share/Embed