New course! Every coder should learn Generative AI!
Try a free lesson0
What is the difference between frozenset and tuple?
what is the difference and which one is better?
1 Answer
+ 8
a = frozenset((1,2,3,3))
b = (1,2,3,3)
print(a, b) # {1, 2, 3} / (1, 2, 3, 3)