x = {'a':1},
y = {'a':1,},
print(type(x), type(y), type({'a':1},), type({'a':1,},))
<class 'tuple'> <class 'tuple'> <class 'dict'> <class 'dict'>
why are the assigned type is tuple
but the direct print outputs dict
type?
x = {'a':1},
y = {'a':1,},
print(type(x), type(y), type({'a':1},), type({'a':1,},))
<class 'tuple'> <class 'tuple'> <class 'dict'> <class 'dict'>
why are the assigned type is tuple
but the direct print outputs dict
type?