sravPro Student 3,476 Points
To return a list of tuples from 2 iterables given to a function
I am getting the following error: TypeError: sequence item 0: expected str instance, int found
I executed the same code in work spaces and it didn't thrown any error. Also, the returned list was same as expected. Am I missing some thing to solve this challenge ?? Any help is appreciated !!
def combo(iter1, iter2): myList =  count = 0 for i in iter1: myList.append((i, iter2[count])) count += 1 return myList
There's no need to use
''.join() or slicing.
What about this solution?
def my_funx(x,y): new_list =  for i in range(len(x)): new_list.append((x[i], y[i])) return new_list