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!
-
3:57:21
Alex Zedra
8 hours agoLIVE! Scary Games with the Girls
32.7K5 -
6:50:04
The Why Files
6 days agoCOMPILATION: Blorpus & Chill with the Beavers Sleepy Time
71.7K88 -
3:07:53
TimcastIRL
10 hours agoGOP To ABOLISH The TSA, Defund NPR & PBS, Already ENDED Education Department w/Sargon | Timcast IRL
250K175 -
1:43:06
Roseanne Barr
12 hours ago $23.31 earnedBit*h Better Have My Money W/ Michael Malice | The Roseanne Barr Podcast #92
80.8K59 -
3:07:55
IcyFPS
6 hours agoIcy Tackles Rebirth Island, again! Day 3 | Verdansk Soon | New META hunt? |
25.4K -
1:22:18
Man in America
13 hours agoTECHNOCRACY INC.: Sinister Links Between Musk, USA, and the British Crown?
70.5K44 -
2:40:30
SlingerGames
8 hours agoThursday Variety Stream!
34.1K5 -
3:05:53
SIMSIM GT
9 hours agoConvoy | Truck Simulator | TRIPLE 55INCH SETUP | GOPRO POV |
57.3K3 -
5:13:21
IronAngel26
10 hours ago $1.03 earnedfew games of fortnite
37.6K2 -
3:25:50
GamingwithMagus
8 hours agoOG Final Fantasy fan plays FF7 Rebirth part 27
41.1K4