CS50P - Lecture 3 - Exceptions

preview_player
Показать описание

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!

***

HOW TO SUBSCRIBE

HOW TO TAKE CS50

HOW TO JOIN CS50 COMMUNITIES

HOW TO FOLLOW DAVID J. MALAN

***

CS50 SHOP

***

LICENSE

CC BY-NC-SA 4.0
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

David J. Malan
Рекомендации по теме
Комментарии
Автор

What a great professor. Hopefully we could all be lucky enough to get a teacher like this in college

JonahDOrsky
Автор

Let me Propose here - I love the way you teach

x_xRosex_x
Автор

Just want to say thanks to David and the whole cs50/cs50p team. Really enjoying the course and wanted to show a little appreciation for the great work you’re all doing.

funkdoc
Автор

pure gold, this why internet is amazing

jgojiz
Автор

his english is so simple when he explained the concepts of programming. it just entered into the heart.

jitendratiwari
Автор

11:03 prog1 20:29 prog2 26:30 prog3 29:38 prog4 31:49 prog5 34:10 prog6 34:34 prog7 34:47 prog8 37:12 prog9 37:50 prog10 43:50 prog11

mahipalmahato
Автор

David, thank you so much for teaching this course! I am addicted to programming now.

kwxsrsf
Автор

Although English isn't my first language, his descriptions are easy to understand. I love you, David Malan. Thank you so much!

RomiVa...
Автор

so this is the edited part of the python course been waiting for this thank you

ronnianabalos
Автор

Great work sir, Keep shining like a gem every day

ahmadsamimsherzad
Автор

This Comment Was Written By a Python Bot!

tyr
Автор

S/O Professor David, some of these accents from the students are thick yet he still, not only hears but understands what they are saying.

pridebeats
Автор

Complicated ideas explained in such a clear and fun way, thank you David!

yqhanliving
Автор

This is a great source of knowledge. Thanks

Controller_paul
Автор

After taking cs50x, this course seems very simple so far.

fakrulotaku
Автор

It would be very nice to add to this lecture the "8.6. User-defined Exceptions" and the "continue" statement subjects.

xzftitz
Автор

Look at the body language of this man at 41:18, it's amazing! The way he gestures is so funny, I couldn't help but giggle.

osmansafi
Автор

Sir, I wanna learn python in professional level. Your course helps me a lot.

umair
Автор

Good Morning....start again Thanks David!

cleidysbrooks
Автор

thank you for making this available to everyone

shantanumathur