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.
@Miluud4 жыл бұрын
I like this video. In just about 6 minutes I learned more than I would've learned by watching a 60 minutes video
@dahuangll5 жыл бұрын
Recently, I used dict very often, it is really useful of your video, thank you!
@saartnomsky45232 жыл бұрын
this was actually super useful bro, thanks
@ronaldjohnson44704 жыл бұрын
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.
@patriciomendez6444 жыл бұрын
Thanks for the clear explanation!
@RamonTomzer Жыл бұрын
very well explained, thank you!
@mini_mouseinthehouse4 жыл бұрын
Thank you for the tutorial. Very helpful!
@BethanyLowe87733 жыл бұрын
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.
@dexter-phillips3 жыл бұрын
Very helpful video thanks!
@_whiteforest74734 жыл бұрын
thanks!!! this video is really helpful!!!!
@scraped_24543 жыл бұрын
What text editor are you using?
@liomon414 жыл бұрын
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 .
@puzzlesolver90884 жыл бұрын
Your example is lacking a key for those nested dicts. It should look like this (keys don't have to be ints, but they have to be hashable): example = { 1: { 'color' : 'red', 'fruit' : 'apple', 'species' : 'dog' }, 2: { 'color' : 'black', 'fruit' : 'blackberry', 'species' : 'panda' }, 3: { 'color' : 'blue', 'fruit' : 'blueberry', 'species' : 'elephant' }, } Lets say you want to iterate through each dict and print it's key and value you can use nested for loops like this: for key, value in example.items(): for k, v in value.items(): print(k, v) print('---------') The output will look like this: color red fruit apple species dog --------- color black fruit blackberry species panda --------- color blue fruit blueberry species elephant I hope it helps :)
@CameraMeetsWorld2 жыл бұрын
@@puzzlesolver9088 Your comment actually helped me more than the video, Thanks!! Video was great but still got confused in some parts
@vladepast49363 жыл бұрын
WHere is "the next video on dictionary"? I cannot find it. Thank you.
@kassytan77972 жыл бұрын
same here
@abhinavsingh42083 жыл бұрын
THANKYOUUU SO VERYY MUCHH ! GOD BLESS YOU BROTHER.
@revenge94314 жыл бұрын
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
@gabrielabdul4 жыл бұрын
The deer function lol
@GeneralBlorp5 жыл бұрын
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.