Premium Only Content

CS50P - Lecture 2 - Loops
TABLE OF CONTENTS
00:00:00 - Introduction
00:00:24 - Loops
00:00:50 - cat.py
00:03:24 - while
00:16:21 - for
00:27:00 - Validating Input
00:34:59 - Iteration with Lists
00:40:36 - len
00:45:47 - Dictionaries
00:57:02 - Lists of Dictionaries
01:05:02 - Nested Loops
01:20:17 - 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!
-
6:55
CS50 Harvard
5 months agoReturn Values - CS50P Shorts
291 -
26:33
DeVory Darkins
1 day ago $52.82 earnedRep Omar EMBARRASSES herself in a painful way as Newsom PANICS over Kamala confrontation
78.5K292 -
3:28:14
Badlands Media
1 day agoThe Narrative Ep. 39: The Sovereign Mind
97K35 -
2:17:35
TheSaltyCracker
8 hours agoThe Charlie Kirk Effect ReeEEStream 9-21-25
111K300 -
2:03:07
vivafrei
8 hours agoEp. 283: Charlie Kirk Memorial and other Stuff in the Law World
210K158 -
9:13:12
The Charlie Kirk Show
19 hours agoLIVE NOW: Building A Legacy, Remembering Charlie Kirk
2.15M916 -
1:55:20
The White House
11 hours agoPresident Trump Participates in the Memorial Service for Charlie Kirk
99.2K90 -
1:02:41
Sarah Westall
10 hours agoDomestic Terror Operation: Death Threats, Smear Campaigns, Gang Stalking w/ Journalist Sarah Fields
52.2K9 -
1:51:40
Nerdrotic
10 hours ago $17.58 earnedGobekli Tepe Discovery and "Reconstruction" | Forbidden Frontier #118
84.3K10 -
29:07
Tactical Advisor
10 hours agoATF Changes Ruling on SBR & Tacpack unboxing | Vault Room Live Stream 039
93.8K18