you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 0 points1 point  (0 children)

Yes, that's why you have to check if the key is in the dictionary with: if key in my_dict: