Tuple to list

tuple to list

1 Python[ | ]

Python
Copy
a = (1, 2, 3)
b = list(a)
print( type(a) )
print( type(b) )
print( a )
print( b )
# <class 'tuple'>
# <class 'list'>
# (1, 2, 3)
# [1, 2, 3]

2 같이 보기[ | ]

편집자 J Jmnote Jmnote bot