How to Iterate Through a Dictionary in Python

preview_player
Показать описание
Learn how to iterate through dictionaries using basic Python tools.

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

I really like how you take pains to make the coding easy to follow, easy to read. So many coding videos don't bother with this crucial aspect of this sort of tutorial. They present you with an unmagnified IDE screen and proceed to waste your time talking you through a process that NEEDS to be seen to be effectively followed.

jesuisravi
Автор

I like this video. In just about 6 minutes I learned more than I would've learned by watching a 60 minutes video

Miluud
Автор

Recently, I used dict very often, it is really useful of your video, thank you!

dahuangll
Автор

this was actually super useful bro, thanks

saartnomsky
Автор

Thank you for the tutorial. I've noticed tutorials on dictionaries always begin with a populated dictionary. How would populate a dictionary automatically with a loop? thanks again.

ronaldjohnson
Автор

Thank you for the tutorial. Very helpful!

mini_mouseinthehouse
Автор

Thanks. The thing that's often confusing about such examples is working out whether "key", "values", "item" etc are protected built-in words, or related to something else in the statement, or could be any actually meaningful variable. So I come out still feeling vague.

BethanyLowe
Автор

thanks!!! this video is really helpful!!!!

_whiteforest
Автор

Hey, firstly love the tutorial but I can't seem to figure out how to display the contents of a nested dictionary... example
example = {
{ 'color' : 'red', 'fruit' : 'apple', 'species' : 'dog' },

{ 'color' : 'black', 'fruit' : 'blackberry', 'species' : 'panda' },

{ 'color' : 'blue', 'fruit' : 'blueberry', 'species' : 'elephant' },

}

My question is : how do you go about iterating over a nested dict(above) just like the example you gave in the video ? Again great tutorial, thanks for your help in advance .

liomon
Автор

WHere is "the next video on dictionary"? I cannot find it. Thank you.

vladepast
Автор

THANKYOUUU SO VERYY MUCHH ! GOD BLESS YOU BROTHER.

abhinavsingh
Автор

If i have a list with 100 values in them. How do i iterate through them by groups of 5 without repeating any previous iteration
Thanks

revenge
Автор

Some folks pronounce dir() as "der", as in how you might pronounce "directory". Pronunciations probably vary by language / person / region / method of learning Python... I just say what the other folks say around me, unless they are dirty "jiff"ers. To hell with THOSE people.

Another good one is "toopal" versus "tuppel", as alternate pronunciations of tuple.

Anyways thanks for the content my dude.

GeneralBlorp