Using python 3 print()
, does not list the repeated data one after the other on the same line?
Let's say you want a message to display on the same line and repeatedly.
example.
my_message = 'Hello'
for i in range(100) :
print(my_message),
it IS CURRENTLY printing one below the other.(not what I want)
hello
hello
hello.....
but I read in the python book that adding a comma , after print(), should create the desired effect and would make it display side by side
hello hello hello hello..(x100)
why doesn't it do that in Python 3? How do you fix it?