Тёмный
No video :(

Python dictionaries 📖 

Bro Code
Подписаться 2,1 млн
Просмотров 25 тыс.
50% 1

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 64   
@BroCodez
@BroCodez 3 года назад
Yes, I am aware I misspelled New Delhi 🤦‍♂ # dictionary = A changeable, *ordered collection of unique key:value pairs # Fast because they use hashing, allow us to access a value quickly # *dictionaries are now ordered as of Python version 3.7 capitals = {'USA':'Washington DC', 'India':'New Delhi', 'China':'Beijing', 'Russia':'Moscow'} # capitals.update({'Germany':'Berlin'}) # capitals.update({'USA':'Las Vegas'}) # capitals.pop('China') # capitals.clear() # print(capitals['Germany']) # print(capitals.get('Germany')) # print(capitals.keys()) # print(capitals.values()) # print(capitals.items()) for key,value in capitals.items(): print(key, value)
@RecyHeller-xo9rc
@RecyHeller-xo9rc 7 месяцев назад
With other videos I checked, I like this better. Straight to the point and showing how it is done so I can follow along.
@lw9954
@lw9954 2 года назад
Best dictionary I've read.
@user-kp1jr8td9f
@user-kp1jr8td9f 2 года назад
Truly the best 🙌🙌🙌💯
@nyiaung4963
@nyiaung4963 4 месяца назад
very helpful for my study
@mslightsite
@mslightsite Год назад
This video made me finally understand for loops. Nice.
@KDB_17
@KDB_17 2 года назад
Thank you very much, I am feeling good when I learn the coding from your channel keep going, Bro!
@augustinejoseph4302
@augustinejoseph4302 Год назад
Great 👍👍👍
@Uberdurden
@Uberdurden 11 месяцев назад
nahhhh this guy is soooo goooodddddd
@vfxentity
@vfxentity 2 года назад
bro i love this channel i learnt dictionaries after some struggling thanks
@99_friety
@99_friety 2 года назад
Thx
@user-cu6fv9gn5z
@user-cu6fv9gn5z 2 года назад
❤❤❤
@blueberrycheesecake6790
@blueberrycheesecake6790 3 года назад
Nice video. Very simple but informative
@seabiscuitthechallenger6899
@seabiscuitthechallenger6899 7 месяцев назад
👍
@Bitter.Truth.For.You.
@Bitter.Truth.For.You. 3 года назад
Me : while simultaneously codding with him. He : lets take INDIA next... Me : Felt Proud I shared his channel to all available social media. :-) Bro Code
@Karim-321
@Karim-321 2 года назад
thank you so much for this! I am working on a project in school and nothing could be more helpful than this. Keep up the amazing work :D
@Unknown-ts4rk
@Unknown-ts4rk 2 года назад
👏👏👏
@Kolahh
@Kolahh Год назад
great tnx
@nope5380
@nope5380 Год назад
good tuto
@slonbeskonechen8310
@slonbeskonechen8310 3 года назад
Bro! You inspire me to learn python, thank you!!!
@melihhopa2684
@melihhopa2684 2 года назад
nice
@_._lis_._
@_._lis_._ 2 года назад
As of Python version 3.7, dictionaries are *ordered.* In Python 3.6 and earlier, dictionaries are unordered. source: www.w3schools.com/python/python_dictionaries.asp
@CringyGamerz
@CringyGamerz 2 года назад
i was gonna say
@dragomircristian8588
@dragomircristian8588 2 года назад
love
@b-66rehanwaddo67
@b-66rehanwaddo67 Год назад
Great Work bro k,brocode!
@joseluizlinotrochmann4210
@joseluizlinotrochmann4210 3 года назад
dictionary = changeable, unordered collection of unique key:value pairs # allow to access a value quickly
@carsonjohnson6402
@carsonjohnson6402 Год назад
Comment because you said so. Thanks Bro.
@kemann3815
@kemann3815 2 года назад
Extraordinary
@beingzero7541
@beingzero7541 2 года назад
Wow!
@ahmetaydn4416
@ahmetaydn4416 2 года назад
Great videos ,more python videos please
@spartanranger
@spartanranger 3 года назад
Thank you for the great content Bro.
@rorkmerl
@rorkmerl 3 года назад
Great Bro
@marcos7434
@marcos7434 2 года назад
Thanks for the lesson. :D
@budderrar5751
@budderrar5751 Год назад
noice
@lucario4399
@lucario4399 3 года назад
great
@theobserver5807
@theobserver5807 2 года назад
what is the difference between print(key, value) and print(capitals.items())? Thanks
@Owlrrex
@Owlrrex 2 года назад
The difference is mostly in how it's used and how you can combine them with other code. If what you want to do is more complex than just printing all the items, being in a for loop and having access to each individual key-value-pair can be an advantage. You can check if the key and/or value fulfil certain conditions, and only then execute additional code.
@DxCKnew
@DxCKnew 3 года назад
6:39 - "So let's say we would like to remove China."
@nope5380
@nope5380 Год назад
stop being funny
@ScienceVashu
@ScienceVashu Год назад
1:46 the spelling is "delhi" not "dehli" the explanation is fantastic
@robinpage2730
@robinpage2730 2 года назад
Can you make a dictionary of strings assigned as variable names to functions? Can you call those functions by invoking those strings?
@dylanwatson7331
@dylanwatson7331 Год назад
Bro Code: "Let's pretend US Government has decided relocate it's capital to Las Vegas." Fallout fans: "Don't you mean...New Vegas?"
@BroCodez
@BroCodez Год назад
You understood the reference!
@gokulc7043
@gokulc7043 3 года назад
Thanks bro
@johnmcclure5051
@johnmcclure5051 2 года назад
Before watching these I was but a man. Now I stand above reality itself as my own god
@airlanggak5391
@airlanggak5391 3 года назад
THANKS!
@veredmalka3284
@veredmalka3284 2 года назад
thanks^^
@MostaphaQamar
@MostaphaQamar Год назад
Please enlarge the screen, increase the font size, change the dark theme.
@jk_sathish
@jk_sathish 2 года назад
Suggest me a best book to learn python from scratch to advanced
@vishnumu5417
@vishnumu5417 2 года назад
youtube is the best book
@tarunrana7686
@tarunrana7686 2 года назад
Bro what is hashing in dictionary
@ryanarnibal283
@ryanarnibal283 2 года назад
Hey is this HashMap but for Python?
@PyGurus
@PyGurus 2 года назад
How can I customize my pycharm as yours? I like when you get the output with lighter green and other text more darker color. Can you just do a short tutorial about that?
@Foxlaren
@Foxlaren 2 года назад
Watch the first video of this series
@studywm_pls
@studywm_pls 2 года назад
hi bro, can you just explain the part where you said - "they are fast because they use hashing" ty appretiate it
@Owlrrex
@Owlrrex 2 года назад
When you ask for the value associated with key "Russia", the dictionary doesn't have to go perform a search over every possible key in the dictionary until it finds "Russia", like it does with a list. Instead, the hash of the key is used so that the dictionary knows exactly where to look for the value associated with "Russia" - no searching means that reading a value from a dictionary is always the same speed, no matter how many entries the dictionary has. To compare, with a list, to find the entry "Russia", you have to search, so it's slower in a 1000 element list than a 10 element list.
@arfidev864
@arfidev864 3 года назад
:D
2 года назад
How do I invert a dictionary?
@user-qx7zc5iu3y
@user-qx7zc5iu3y 3 месяца назад
Would have liked to see a nested dictionary example, or double/triple,quadruple nested dictionary. Nonetheless, great video.
@pbsmoothie7281
@pbsmoothie7281 Год назад
RU-vid algorithm comment
@jerwelllipnica126
@jerwelllipnica126 Год назад
hi 5 bro
@shikhargupta4280
@shikhargupta4280 2 года назад
It's New Delhi and not New Dehli
@shashankphiske3678
@shashankphiske3678 Год назад
bro destroyed the name Delhi
@tarikyassa1076
@tarikyassa1076 3 года назад
👍
Далее
Python dictionaries are easy 📙
8:06
Просмотров 220 тыс.
Python string format 💬
12:47
Просмотров 30 тыс.
НЕ ИГРАЙ В ЭТУ ИГРУ! 😂 #Shorts
00:28
Просмотров 194 тыс.
Python variables ✘
12:17
Просмотров 65 тыс.
Python functions 📞
9:15
Просмотров 40 тыс.
Let's Learn .NET Semantic Kernel
Просмотров 82
Python dictionary comprehension 🕮
8:41
Просмотров 36 тыс.
Python indexing 📑
6:12
Просмотров 31 тыс.
Python sets 🍴
6:59
Просмотров 24 тыс.
Python for loop ➰
6:16
Просмотров 39 тыс.