Regarding get() in Dictionary

what does pokemon_map.get(5) returns if the key is found

Hey @mdhivagar09, pokeman_map.get(5) returns the value for the key “5” if the key is found. otherwise it will return None but do not produce Key error.

Hope this resolved your doubt.
Plz mark it as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Hey @mdhivagar09, you have reopened the doubt, is something left ?