I have an example code:
fruits = 'apple', 'banana', 'kiwi'
veggies = 'corn','lettuce', 'spinach'
for x, y in zip(fruits,veggies):
print(f' combo: {x}, {y}')
I am trying to export the output of this "for" loop to a CSV file, but have not succeeded with doing so. The output looks like this:
combo: apple, corn
combo: banana, lettuce
combo: kiwi, spinach
Can I please get some guidance on how to export to a CSV?