def list_2_tuple(a_list): return tuple(a_list)
Time is over! You can keep submitting you assignments, but they won't compute for the score of this quiz.
Transform list to tuple
Write a function
list_2_tuple that takes a list as a parameter and returns a tuple containing the same elements. Example:
list_2_tuple([1, 'c', 9, False]) # (1, 'c', 9, False) list_2_tuple() # (2,)