human
Write me a Python function to how do you extend a list.
assistant
Here is a Python function to how do you extend a list

import random

def extend_list(list, new_list):
    """
    Extend a list with new_list.

    :param list:
    :param new_list:
    """
    for item in new_list:
        list.append(item)

# Enter the list
list = [1, 2, 3]

# Enter the new list
new_list = [4, 5, 6]

# Calling the function
print((extend_list(list, new_list)))

# Printing the list
print(list)

#Example Output
# None
# [1, 2, 3, 4, 5, 6]

#Remember to inspect code for bugs.