I need to print this code:
for x in range (1, 21):
if x%15==0:
print("fizzbuzz")
elif x%5==0:
print("buzz")
elif x%3==0:
print("fizz")
else:
print (x)
Horizontally instead of it printing vertically, like this:
1 2 3
to
1 2 3
I am not sure how to, some help would be great. Thanks