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 -
12:11
Nikko Ortiz
12 hours agoCrashout 6 Rumble
2.68K -
22:35
GritsGG
12 hours agoThe KILO is BACK! The Best AR on Warzone FRIES!
1.95K1 -
2:16:36
Side Scrollers Podcast
16 hours agoStreamer KICKED OUT of Renaissance Fair for Misgendering + Spiderman MELTDOWN | Side Scrollers Live
32.4K5 -
12:29
The Pascal Show
1 day agoLOCKED IN A DUNGEON?! Parents Arrested After 5 Children Found In 'Dungeon' At Home
1.15K3 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
195 watching -
3:07:24
FreshandFit
7 hours agoPrivileged Nigerian Thinks Women Created Everything: HEATED DEBATE
134K63 -
5:57:27
SpartakusLIVE
8 hours agoNEW Update - BROKEN Attachment || Viewers REJOICE at the long-awaited Return of Their KING
72.2K -
2:06:31
TimcastIRL
7 hours agoTrump To Deploy National Guard To Portland, Antifa Has Been WIPED OUT | Timcast IRL
182K144 -
2:30:00
Laura Loomer
9 hours agoEP142: Loomer Prompts Calls For FBI To Investigate Palestinian Youth Movement
46K18