0 out of 464 challenges solved
Write a function `list_to_tuple` that takes a list as input and returns a tuple containing the same elements as the input list.
#### Example Usage
```python [main.nopy]
print(list_to_tuple([1, 2, 3])) # Output: (1, 2, 3)
print(list_to_tuple(['a', 'b', 'c'])) # Output: ('a', 'b', 'c')
print(list_to_tuple([])) # Output: ()
```def list_to_tuple(input_list):
"""
Convert a list to a tuple.
Args:
input_list (list): The list to convert.
Returns:
tuple: A tuple containing the elements of the input list.
"""
# Replace the following line with your implementation
pass