What is the difference between this two expressions?
x = set(1) # TypeError: 'int' object is not iterable
x = {1} # OK
Why does the first raise an error and the other not?
What is the difference between this two expressions?
x = set(1) # TypeError: 'int' object is not iterable
x = {1} # OK
Why does the first raise an error and the other not?