So I have a list:
names = ['dog','cat','mouse','moose','rabbit','horse','apple','banana','orange']
I want the output to be like this:
dog cat mouse moose rabbit horse
apple banana orange
So basically a max of six words per line displayed when printed.
I'm honestly clueless where to start, because a for loop as such will display 1 per line:
for i in names:
print(i)
output -->
dog
cat
mouse
moose
rabbit
horse
apple
banana
orange