>>> int([1])
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
int([1])
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
>>> str([1])
'[1]'
>>> tuple([1])
(1,)
>>> dict([1])
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
dict([1])
TypeError: cannot convert dictionary update sequence element #0 to a sequence
>>> set([1])
{1}
>>>
>>> int(('a',))
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
int(('a',))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'
>>> str(('a',))
"('a',)"
>>> list(('a',))
['a']
>>> dict(('a',))
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
dict(('a',))
ValueError: dictionary update sequence element #0 has length 1; 2 is required
>>> set(('a',))
{'a'}
>>>
>>> int({'a':1})
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
int({'a':1})
TypeError: int() argument must be a string, a bytes-like object or a number, not 'dict'
>>> str({'a':1})
"{'a': 1}"
>>> list({'a':1})
['a']
>>> tuple({'a':1})
('a',)
>>> set({'a':1})
{'a'}
>>>
>>> int({1})
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
int({1})
TypeError: int() argument must be a string, a bytes-like object or a number, not 'set'
>>> str({1})
'{1}'
>>> list({1})
[1]
>>> tuple({1})
(1,)
>>> dict({1})
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
dict({1})
TypeError: cannot convert dictionary update sequence element #0 to a sequence
>>>