11. Dictionaries and Tuples [Python 3 Programming Tutorials]

preview_player
Показать описание
In this python tutorial, we will understand the concept of “dictionaries and tuples”. We will understand what are dictionaries, “order in a dictionary”, how to access dictionary element, what is “tuples” and the difference between “list and tuple”.

Correction at 4:38, I used 'key' in print, it should be k. i.e. print("key:",k," value:",v)

Topics that are covered in this Video:
0:00 What is the dictionary
1:20 Access dictionary element
2:33 Order in the dictionary
2:56 delete from the dictionary
5:00 in operator in the dictionary
6:00 What are tuples?
7:00 Difference between list and tuple
8:18 Tuples are immutable

Next Video:

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

Great explanation, thanks for this video.

Note- As of Python version 3.7, dictionaries are ordered. In Python 3.6 and earlier, dictionaries are unordered.

FLStudioFUN
Автор

Thanks Mota bhai, First time I am able to see proper particle explanation of Dictionary, list and Tuple.

rohitlabhe
Автор

Finally i understood the difference between a List and Tuple, thank u so much!!

yvng
Автор

UPDATE - DICTIONARY IS NOW ORDERED AS PER PYTHON 3.7

adityamohanty
Автор

4:36 You forgot to change key with k in the print statement! Btw great explanation ♥

saiharshapaladugu
Автор

Thank you Sir for the exercises, as they cover all the concepts taught till now especially the use of conditional statements!!

sidde_
Автор

sir you are great i love your simplicity and way of teaching too.

prakharmishra
Автор

due to use of functions in this, understood many idea of coding and logic..
thank u sir...

ganeshgunjal
Автор

The exercise given is so tough! I have no idea what all concepts have been used in the country and population problem

just_a_viewer
Автор

@codebasics : for k, v in d.items() print ('key :', key, "Value:", v) output is showing Key = tom for all 3 items in the dictionary. Looks like in the print statement you should use k instead of key

urvipasad
Автор

Thank you, this is very helpful. Respect to you

nayture_man
Автор

The tuple example is wrong. It should be ↙
for k, v in d.items():
print("key:", k, "value:", v)

NorlynCodes
Автор

Can we replace the word "key" in "for key in d:" with anything, like say "n", followed by "print(n)"? Will it still work? What I'm trying to figure out is if the word "key" is a reserved word, or is it simply a placeholder for any variable name?

sandeepjaykumar
Автор

while using tuple case it is printing same person name repeatedly only the contact number changes, Even if in this video of yours i noticed the same thing. video time: (4:45)

rockyhard
Автор

sir can you explain defference between dictionaries and tuples in more detailes?

BakCoder
Автор

4:40 here k, v is used but inside print Key and v is used, so the key is from the previous for loop ??

sudipanpaul
Автор

Sir, in other sources I read that, since the release of python 3.7 (June 2018) dictionaries are ordered, and even you can call them by their index number. But in this tutorial @ 2:45 you said "for dictionaries order doesn't matter" so I am kind of confused. Thank you in advance.

searez
Автор

@ 4:50 it prints only tom as key...why?..it is supposed print rob and joe also right?!

racharlavamshi
Автор

4:35 What is the 'k' used for in the tuple? Was it meant to take the place of the key variable?

GhostkillerPlaysMC
Автор

where are the exercises u mentioned in the

priyankasawant
join shbcf.ru