9 Respostas
+ 5
Whenever needed. Anytime you need something that could be represented as a key-value pair. For example, if you get into using Python with web development you may find yourself using a dictionary along with prepping an object to be converted to JSON.
+ 15
may it helpful..
https://docs.python.org/3/tutorial/datastructures.html
+ 9
Thanks guys
+ 9
Dictionaries give us O(1) average lookup times. So they are an important component in many different optimization strategies.
+ 4
Also, the switch... Case doesn't exist in python. What is often use instead is a dictionary whose key are the condition and values are functions realizing the statement.
This is a very useful way of using dictionaries
+ 2
very useful iterables
+ 1
I once used it to strip a >1000 pages text document (ecported from an oldschool database) from all the regular words to find custom tags.
+ 1
dictionaries
đđđđđđ
https://code.sololearn.com/cuWT75qxQa4o/?ref=app
+ 1
Dictionaries
đđđđđđđ
https://code.sololearn.com/cuWT75qxQa4o/?ref=app