Please show us the actual inputs and code you are using. You are showing is list1 and list2, while your traceback talks about final_list. For the input and code you've shown, you should not get any errors. There's something in either your code or