What does get mean in dictionary | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does get mean in dictionary

3rd Sep 2021, 10:52 AM
Asuman Jjunju
Asuman Jjunju - avatar
2 Answers
+ 4
get() is a dictionary method that returns the corresponding value of a given key. There is an optional parameter for the value to be returned if the key is not found. Here's an example https://code.sololearn.com/c3764yI7Ri8X
3rd Sep 2021, 11:45 AM
David Ashton
David Ashton - avatar
0
Asuman Jjunju Hi buddy Sorry but your question doesn't make sense. May I suggest the following. 1. Header -> State the basic problem, which you did. 2. Tags -> Language, concepts So you might put PYTHON, DICTIONARIES, GET 3. Description -> a detailed description of your problem. Post your example, or your code so people can see what you are trying to do
3rd Sep 2021, 11:27 AM
Rik Wittkopp
Rik Wittkopp - avatar