TypeError: 'int' object is not iterable with zip()
the question goes like this: revenue = [30000, 50000, 70000, 90000] cost = [10000, 15000, 20000, 30000] Write a comprehension together with the zip() function to make a new list that maintains profits. I tried doing it with for-loop: new_list = [] for revenue, cost in zip(revenue, cost): profit = revenue – cost new_list.append(profit) new_list… Read More TypeError: 'int' object is not iterable with zip()