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,)
import unittest


class List2TupleTestCase(unittest.TestCase):

    def test_list_2_tuple(self):
        self.assertEqual(list_2_tuple([3, 2, 'a']), (3, 2, 'a'))
        self.assertEqual(list_2_tuple([7]), (7, ))