1

What Python magic method is used to get value when variable in used as dictionary key.

dictionary[variable]

dictionary is random dictionary, variable is something like int (my own class)

When i use variable as above, what magic method is used to return the value used as key in dictionary.

Kubator
  • 11
  • 2

0 Answers0