153k views
2 votes
Which method can be used to convert a tuple to a list?

User Bog
by
8.0k points

1 Answer

2 votes

Answer: list()

Step-by-step explanation:

# Define a tuple

my_tuple = (1, 2, 3, 4, 5)

# Convert the tuple to a list

my_list = list(my_tuple)

# Print the list

print(my_list)

User Santosh Ram Kunjir
by
8.5k points