fork download
  1. for obj in ({1, 2, 3}, {'a': 1, 'b': 2}):
  2. print('{} is a {}'.format(obj, type(obj)))
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
set([1, 2, 3]) is a <type 'set'>
{'a': 1, 'b': 2} is a <type 'dict'>