I have a part of code:
But Python have been printing to me:
TypeError: ‘list’ object cannot be interpreted as an integer
Why, if each list have a string type data? Can it be related with importing lists to finction?
list1: [‘AD’, ‘KC’, ‘QC’]
list2: [‘KH’, ‘QS’, ‘JC’]
If you are trying to remove the first item in list2, and append that item to list1, the code should be:
I don’t understand your two questions. Also, did you intend to type “function” instead of “finction”?
Thank you. Yeah, I meaned the function, but it doesn’t matter anymore. I had know my method would not working.