Chapter 7: Problem 24
Assume that my_list references a list. Write a statement that converts it to a tuple.
Short Answer
Expert verified
Answer: To convert a list to a tuple, pass the list as an argument to the tuple() function, like this: my_tuple = tuple(my_list).