Premium Only Content

CS50P - Lecture 8 - Object-Oriented Programming
TABLE OF CONTENTS
00:00:00 - Introduction
00:00:24 - Object-Oriented Programming
00:01:00 - Tuples
00:18:39 - Dictionaries
00:26:45 - Classes and Objects
00:39:18 - Instance Methods
00:59:49 - Validating Attributes
01:04:25 - The String Method
01:11:13 - Custom Methods
01:20:43 - Properties, Getters, and Setters
01:42:33 - Types and Classes
01:50:29 - Class Methods
02:21:10 - Inheritance
02:35:29 - Operator Overloading
02:50:03 - 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!
-
2:20
CS50 Harvard
2 months agoInvitation to CS50x Puzzle Day 2025
261 -
10:09
Forrest Galante
1 day agoWildlife Expert Reacts to Crazy Animal Zoo Attack TikToks
94.5K21 -
46:55
The Connect: With Johnny Mitchell
1 day ago $19.60 earnedInside A Mexican Sicario Training Camp: How The Jalisco New Generation Cartel Trains It's KILLERS
119K29 -
LIVE
PudgeTV
3 hours ago🟠Gaming on Rumble | Witcher 3: The Wild Hunt | Should I Bring Back the Death Counter?
197 watching -
9:03
MattMorseTV
1 day ago $8.93 earnedTrump just SHATTERED the RECORD.
63.5K62 -
1:28:30
The Pascal Show
13 hours ago $9.04 earnedBREAKING! AMBUSHED! Multiple Idaho Firefighter s Ambushed By GUNMAN! Suspects AT LARGE?!
41.8K17 -
HEXIK
6 hours agoThis game no longer exists | [6-30-25] | THE CYCLE: FRONTIER
10.3K -
LIVE
ADH Gaming
11 hours agoTasking, Lootin, shootin/ hUNT sHOWDOWN
78 watching -
2:23:35
TheSaltyCracker
13 hours agoSo Much Winning ReeEEeeStream 06-29-25
139K392 -
6:05:51
SpartakusLIVE
15 hours ago#1 Texas FARMBOY Turned World-Wide Gaming SUPERSTAR amasses NERDS in chat from the ENDS OF THE EARTH
103K1