- set to tuple
Python
a = {1, 2, 3}
b = tuple(a)
print( type(a) )
print( type(b) )
print( a )
print( b )
# <class 'set'>
# <class 'tuple'>
# {1, 2, 3}
# (1, 2, 3)
a = {1, 2, 3}
b = tuple(a)
print( type(a) )
print( type(b) )
print( a )
print( b )
# <class 'set'>
# <class 'tuple'>
# {1, 2, 3}
# (1, 2, 3)