Комментарии:
thanks for that bro
Ответитьgreat tutorial
ОтветитьThanks for the lesson, but i think, f-strings more pretty
ОтветитьIt was nice the way you took us to the climax. It was smooth.
Ответитьthank you so much
Ответитьawesome vid thanks
ОтветитьHow do you use it in nested dictionaries?
ОтветитьWhat is the IDE hes using?
ОтветитьGreat content....
ОтветитьOkay so the last version
def greeting(user_id):
return “Hi %s!” % name_for_user_id.geet(user_id, “there”)
doesn’t have to deal with a ‘membership check’ and you don’t have to write an exception block, and it’s understandable.
Also, String substitution is the name for the weird %s.
That was very useful thank you!
ОтветитьThanks !
Ответитьhow can you print the key though instead of the value?
Ответитьthanks so much, very clear to understand the .get().
ОтветитьFuck me! Never heard anyone pronounce Python so annoyingly.
PIE THORRRN....
Hi Dan, great tip! I like the way you developed the thought process leading to the solution. What python console are you using? I love the code completion feature that I don't have from within terminal or iTerm.
Ответитьwhy isn't the return statement working in sublime text ?
i copied the same code it doesnt gives any output nor any error. Though it runs on python.
Why is it not good style to use a membership check?
I'm assuming because every time it executes it has to check through a whole, what might be megabytes or ids for this check .... but that is not really a "style" think is it? It is more of an efficiency thing?
But, even with the key error thing you still end up checking all the keys, no? But at least, not more than once.
Great video by the way, super to the point and efficient! thumbs up
Hi, you had to finish with setdefault method, but it still cool presentation of the subject. Thanks!
ОтветитьI'm a Brazilian and I really enjoyed this video. Nice work!
ОтветитьThank you for providing easy and smooth example ..Thanks.
Ответить