Python - CS50 Shorts

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

This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.

***

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
Рекомендации по теме
Комментарии
Автор

Python Syntax Overview - 2:16
Variables - 2:44
Conditionals - 4:14
Loops - 7:50
Arrays/Lists - 10:19
Tuples - 14:44
Dictionaries - 18:46
Printing and Variable Interpolation - 24:25
Functions - 25:20
Objects - 27:37
Style - 35:15
Including Files - 36:28

chrisoaus
Автор

Doug is such an oddly charismatic guy.

robotnixon
Автор

I always look forward to Dougie Fresh's shorts vids. David is a raging madman, slinging information at top speed. Dougie pulls it all in and makes it more digestible (No shade to David, the whole team is a great combo)

andyalberts
Автор

Update to code at 16:53: now you can use f-strings too:
print(f"In {year}, {prez} took office.")

joseville
Автор

It's somehow uncomfortable when seeing variable type not

nervous
Автор

2019 UPDATE: Dictionaries entries stay in the order you created them - in CURRENT VERSIONS of Python (3.7 and above)!

And for all of us who got so used to explicitly declaring variable and return types: It's worth mentioning that using types explicitly is possible now in Python (through special syntax) and I feel it's becoming more common at the moment! It is totally optional, but it can be useful to avoid errors from wrong types!

rautermann
Автор

For some reason i like C more than Python. I really enjoyed the first 5 weeks actually.

SeyidAr
Автор

Hi, just a quick note on the fact that using "id" as a parameter variable in the object is not ideal as id() is actually a built in function in Python. Using "id_" or "iden" or whatever will resolve the issue that most students will encounter when trying to print jane.id.

pyb.
Автор

That explanation with __init__ has finally cleared all of my previous questions, such a nice entry to the OOP

sungvin
Автор

Like most of your intro videos, except the OOP explanation in this one. If someone doesn't know OOP from other language, your explanation in this one probably just exploded their heads

qixiangwong
Автор

this syntax is simple for 16:58 print(f"In {year}, {pres} took office")

arunkumaralagarsamy
Автор

perfect python crash course. thanks Doug!

femtoapple
Автор

Pythons greatest asset is its coolness

C - a literal letter, lame
Java - Coffee is boring
Java Script - Cooler because script sounds leet
Assembly - Reminds me of highschool.
Python - An actual snake


Python is the winner

DogginsFroggins
Автор

Doug you are awesome...incredibly awesome..

gamingbeasts
Автор

Python looks like a paragraph that is missing periods between sentences at first glance lol. I got used to brackets and curly braces.

scaramouche
Автор

16:19 how does the know what "prez" and "year" is? How does it know to correspond to the tuple values?

montheist_tv
Автор

This 39-minute video, one of the most useful "shorts" in the world, calls itself a "shorts"

dzmespm
Автор

22:55 Should be updated that Python 3.7 onwards dicts will preserve insert order. Maybe write it on the video's description, because it could potentially confuse future students.

banj
Автор

Since I coded a lot in Python since 2019 to 2023, this week will be a breeze.

MoolsDogTwoOfficial
Автор

14:05
nums[len(nums):] = [5]
Could anyone tell why the hell there is that colon after len(nums)?

fatadel