[Tutor] Printing without a line feed
Phil
phillor9 at gmail.com
Thu Mar 25 01:29:02 EDT 2021
Thank you for reading this.
I want to print a range of numbers with a space between them but without
a space at the end. For instance:
for i in range(6):
print(i, end=' ')
How do I do this without the end space? I've spent hours on this even
though I've managed to do what I want not long ago but I cannot remember
how I did it. It's very frustrating.
--
Regards,
Phil
More information about the Tutor
mailing list