How would you loop through each element in a list in python. For example if I have the list:
list = ["abc",3,(10,(11,12))]
I would like to have the split up the list into: ['a','b','c',3,10,11,12]
Right now I have:
def combinelist(list):
l = []
for item in list:
l.append(item)
return l
However this just returns the exact same list. How would I go thorough each element in the list and split each element? Thanks for the help!