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!
-
1:14:07
Glenn Greenwald
6 hours agoComedian Dave Smith On Trump's Picks, Israel, Ukraine, and More | SYSTEM UPDATE #370
88.4K97 -
1:09:07
Donald Trump Jr.
9 hours agoBreaking News on Latest Cabinet Picks, Plus Behind the Scenes at SpaceX & Darren Beattie Joins | TRIGGERED Ep.193
145K484 -
1:42:43
Roseanne Barr
4 hours ago $7.67 earnedGod Won, F*ck You | The Roseanne Barr Podcast #75
49.3K81 -
DVR
Slightly Offensive
6 hours ago $5.84 earnedDEEP STATE WINS?! Matt Gaetz OUSTED as AG & Russia ESCALATES War | Guest: The Lectern Guy
17.6K6 -
LIVE
Precision Rifle Network
5 hours agoS3E8 Guns & Grub - the craziness continues
399 watching -
41:37
Kimberly Guilfoyle
7 hours agoPresident Trump Making all the Right Moves,Live with Border Union Chief Paul Perez & Lawyer Steve Baric | Ep. 176
94.1K23 -
19:38
Neil McCoy-Ward
10 hours agoMASS LAYOFFS Have Started... (How To Protect Your Income)
13.8K6 -
46:21
PMG
22 hours ago"Venezuelan Gang in 16 States, Animal Testing Crackdown, & Trump’s Nominee Battle"
6.97K7 -
LIVE
VOPUSARADIO
9 hours agoPOLITI-SHOCK! WW3!?, BREAKDOWN OF THE WORLD EVENTS & R.A.G.E. (What it means & What's next!)
137 watching -
1:00:10
The StoneZONE with Roger Stone
6 hours agoWhy Democrats Hold Poor Children Hostage in Failing Schools | The StoneZONE w/ Roger Stone
34.9K5