I need for this code to print horizontally and I've looked around but none of the answers seem to work for me.
for x in range (1,20):
if x % 5 == 0 and x % 3 == 0:
print ('FizzBuzz')
elif x % 3 == 0:
print ('Fizz')
elif x % 5 == 0:
print ('Buzz')
else:
print (x) .