When you use {} then you are defining a set or a dictionary or a comprehension for a set or dict.
When you use () then you are defining a tuple, or a function, or a generator expression, or calling a function.
They are different parts of syntax that do different things - you can’t use them interchangeably.
Bookmarks