Python Concatenating 2 Lists

I am just trying to concatenate two lists together, but I am not sure what is wrong with my code, it won't run. Thank you for any help.

#!/usr/bin/python
# Takes two lists and returns a list that is the concatenation of both of
# them.

A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
B = [11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
def list_concat( A, B):

   print(A)
   print(B)
   A.extend(B)
   print(A)

Your code is alright. It's just incomplete. You're not making any call to the function list_concat(). Call the function passing A and B as arguments and you will see the output.

newList = list1 + list2

doesn't get easier