Solutions will be available when this assignment is resolved, or after a few failing attempts.

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])                 # (2,)

Test Cases


def list_2_tuple(a_list): pass