0

Strange change in the output

The code: https://www.sololearn.com/en/compiler-playground/cmqaTR3LvPJd The output: {(1, 2): 'list', 'value': 'one'} dict_keys([(1, 2), 'value']) dict_values(['list', 'one']) dict_items([((1, 2), 'list'), ('value', 'one')]) Where did dict_ come from? I expected to see the variable name instead.

8th Sep 2024, 8:47 AM
Igor Matić
Igor Matić - avatar
2 Respuestas
+ 3
these are the object types.
8th Sep 2024, 8:57 AM
Lisa
Lisa - avatar
+ 1
There was no mention of them in the lesson about dictionaries.
8th Sep 2024, 9:05 AM
Igor Matić
Igor Matić - avatar