human
Give me a Python program to change an list into a tuple in Python.
assistant
Here is a Python program to change an list into a tuple

import random

def list_to_tuple(lst):
    """
    Change an list into a tuple.
    """
    return tuple(lst)

# Enter the list
lst = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((list_to_tuple(lst)))

#Example Output
# (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)

#Remember to inspect code for bugs.