CS50P - Lecture 0 - Functions, Variables

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

TABLE OF CONTENTS

00:00:00 - Introduction
00:03:19 - Command-line Interface
00:04:00 - Python Interpreter
00:05:06 - Functions, Arguments, Side Effects
00:07:35 - Bugs and Debugging
00:09:54 - VS Code and Integrated Development Environments (IDEs)
00:12:16 - Return Values and Variables
00:19:56 - Comments and Pseudocode
00:25:05 - Multiple Function Arguments
00:31:01 - Named Parameters
00:40:48 - Escaping Characters
00:43:10 - f-Strings
00:45:04 - String Methods
00:54:43 - Style
00:57:50 - split
00:59:35 - Integers and Operators
01:06:25 - Type Conversion
01:14:36 - Floating Point Values
01:19:18 - Numeric Formatting
01:22:47 - Division
01:26:14 - Defining Functions
01:39:01 - Scope
01:41:17 - Return Values
01:45:11 - 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
Рекомендации по теме
Комментарии
Автор

I think the craziest thing about me watching this video is that I'm currently in college, paying to take this course, and the free online course is teaching me better.

DevinB
Автор

I'm a 29 years old with no bachelor degree and zero work experience in IT field, and I'm just starting with this. I believe, at some point when I'll look back to this day. I'll be glad 🔥

rahulbhattacharyatheH
Автор

I truly appreciate the kindness of putting CS50 out here for free! Thank you, thank you!

marthachacon
Автор

I'm 57. So, I'm a little older than most of the folks that you teach!
When I was in high school, 9th grade around late 1980, I had a teacher who was just the best. He made classes interesting. Think 'Dead Poets Society'.
You, my friend, are just like an updated New Millennium version of him. Thanks for these lectures. Much appreciated! 😎

GlenMillard
Автор

37:50 I never knew the real meaning behind writing the end="" to exclude the new line. It was mind-blowing to understand such a fantastic explanation about it.
Thanks, David

aldotheapache
Автор

1:05:26 To have the ability, as an educator, to show surprise for such a basic concept so convincingly and humoursly is - in my view - not only evidence of excellent skills, but genuine love and passion for teaching. ❤ And what about that acting??? I paused because I laughed so hard and then got deeply impressed and inspired by this wonderful professor. Replayed it at the end and enjoyed it even more. The overall quality of content, delivery and resources of this program is exceptional. Thank you so much for this experience CS50 team!

MariaChrysafidi
Автор

This is nostalgia. I started learning coding from CS50. Now working in tech.

healyoursoul
Автор

I always gave up in self-studying programing. Even more my English is not perfect so I avoided all study materials on the internet. Yeah, it's very pity cuz almost of courses, posts are available only in English but not my mother lang. And now? I'm watching an Eng course which is extremely clearly to understand. I love, love the way how that super man explains things and compares. A big thank to you and all the staff. Feeling grateful.

petrmai
Автор

hey david, good stuff as always. Just when you say its meant for beginners, you should follow the proper journey from installation of all the necessary softwares to how to integrate them because i am writing the same thing as you have written and I am getting an error. Now gotta watch some other videos first.

ibrahimdar
Автор

Im learning a lot from this, its the second time time i start over, but this time I'm taking this like i would take an actual class, with notes, and not just for entertainment. So far everything has been amazing, thank you david!

jik
Автор

I’m watching these videos for fun . Not a programmer. Just want to keep my brain sharp, learn something new . This person has a good teaching style .

VHS
Автор

Please bring back Artificial intelligence course...you're one of the few people who actually dedicated solely in purpose to enlighten us..thanks for educating the world....👌

shafinmahmud
Автор

Hats off to David for such a wonderful job

fratquintero
Автор

David is so great! I watched CS50 this summer in preparation for my return to school, and I have an intro to programming class. The teacher isn’t half of David’s quality, we’ve seen in 3 weeks what David teaches in 90 minutes.

Thanks @David Malan!

KarlDag
Автор

Best teacher in Python, best teacher in any programming language in every category I have taken classes, not only his logic in teaching coding flows like a pristine river but also his narrative arouse one's interest in trying to think and code following the lecture. I wish I had had teacher like David when I learned to code in every programming language every step of the way - I could have done a lot more and a lot better.

bizfamhillbelm
Автор

That transition from interactive mode to the integer segment was amazing. This course is great.

DamazoTha
Автор

Brilliant timing, brilliant lecturer, brilliant course.

waldopieterse
Автор

Wow !! What a beautiful and interesting lecture ! Explanations, content, speed and didactics are amazing. It is really fun and insightful at the same time, motivating me to keep on going with python and this course. Can hardly imagine how it must be viewing this or any other courses directly in Harvard.

Many thanks for letting "us" join this course. The "VS code" environment and the according explanations are also perfect, lowering barriers extremely.

michaelunknown
Автор

it took long to finally find a python course that ACTUALLY teaches you😭😭😭😭😭

choccowilk
Автор

This is the best resource I have accessed for learning Python thus far. I used the Mimo app for a while, but I found there was no practical application. It was great for learning the fundamentals, but I was often left confused.
I can't believe this course is available for free it is worth the $199 price point!

Ashleycreates_content