Premium Only Content

CS50P - Lecture 3 - Exceptions
TABLE OF CONTENTS
00:00:00 - Introduction
00:00:24 - Exceptions
00:00:52 - SyntaxError
00:03:29 - ValueError
00:08:52 - try, except
00:14:18 - NameError
00:18:35 - else
00:22:40 - Reprompting, break
00:29:50 - get_int
00:35:48 - pass
00:41:32 - Function Arguments
00:43:52 - 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!
-
2:20
CS50 Harvard
5 months agoInvitation to CS50x Puzzle Day 2025
271 -
LIVE
StoneMountain64
2 hours agoBattlefield's Easter Egg Phantom Project is STILL ALIVE
182 watching -
LIVE
Jeff Ahern
1 hour agoNever Woke Wednesday with Jeff Ahern
147 watching -
13:43
The Kevin Trudeau Show Limitless
5 hours agoClassified File 3 | Kevin Trudeau EXPOSES Secret Society Brainwave Training
11.2K4 -
LIVE
SportsPicks
3 hours agoCrick's Corner: Episode 75
38 watching -
1:06:30
LindellTV
1 hour agoMIKE LINDELL LIVE AT THE WHITE HOUSE
3.95K -
1:05:33
Russell Brand
4 hours agoTrump Goes NUCLEAR on China - accuses Xi of CONSPIRING against US with Putin & Kim - SF627
111K41 -
1:14:47
Sean Unpaved
3 hours agoTrey Wingo's Gridiron Grab
17.2K1 -
13:07
Silver Dragons
21 hours agoBullion Dealer Reacts to SILVER PRICE SURGING!
8.84K5 -
1:06:28
Timcast
3 hours agoTrump Admin Threatens GOP Who Vote To Release Epstein Files
146K108