Sobes.tech
Junior — Senior

Dictionary output after key override

livecode

Task condition

What will be printed after executing the program? Answer options:

  • {1: 'stepik', True: 'beegeek'}
  • {1: 'beegeek'}
  • {True: 'beegeek'}
  • {True: 'stepik'}
  • {1: 'stepik'}
  • an error will occur
my_dict = {}
my_dict[1] = 'stepik'
my_dict[True] = 'beegeek'
print(my_dict)