def addition(n):
return n + n
numbers = (1, 2, 3, 4)
result = map(addition, numbers)
print(list(result))
print(set(result))
print(tuple(result))
Output - [2, 4, 6, 8] set() ()
Why is only the print of list is executing correctly, the succeeding set and tuple are printing empty objects?