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!
-
7:29
CS50 Harvard
5 months agoVariables - CS50P Shorts
26 -
1:46:41
Man in America
12 hours agoLIVE: Assassin Story DOESN'T ADD UP! What Are They HIDING From Us?? | LET'S TALK
81.6K101 -
2:24:17
Barry Cunningham
8 hours agoFOR PRESIDENT TRUMP WILL TAKE NO PRISONERS AND THE LIBS SHOULD EXPECT NO MERCY!
117K72 -
1:08:41
Savanah Hernandez
8 hours agoCharlie Kirk Was Our Bridge And The Left Burned It
64.8K54 -
1:59:01
Flyover Conservatives
11 hours agoFinancial Web Behind Charlie Kirk's Murder with Mel K | Silver On It's Way to $50 | FOC Show
73K5 -
2:36:19
We Like Shooting
19 hours ago $1.73 earnedWe Like Shooting 628 (Gun Podcast)
47.4K1 -
1:09:26
Glenn Greenwald
10 hours agoTrump's Shifting Immigration and H-1B Policies: With Journalist Lee Fang and Political Science Professor Ron Hira | SYSTEM UPDATE #515
180K41 -
13:09:23
LFA TV
1 day agoLFA TV ALL DAY STREAM - MONDAY 9/15/25
264K66 -
54:12
Donald Trump Jr.
9 hours agoCharlie's Vision. Our Future. | TRIGGERED Ep274
210K132 -
1:03:35
BonginoReport
10 hours agoKirk’s Alleged Killer Dating Hateful Transgender??? - Nightly Scroll w/ Hayley Caronia (Ep.134)
135K154