Hi,
Just wondering if someone can tell me how I could iterate through a list and
print each item next to one another.
for example :
If I have a list a = [1,2,3,4,5]
I could of course do this :
but that prints each item on a new row .... what I want is to print each item so
it reads like this :
12345
with no new line after printing each item.
Thanks,
Just wondering if someone can tell me how I could iterate through a list and
print each item next to one another.
for example :
If I have a list a = [1,2,3,4,5]
I could of course do this :
Code:
for item in list :
print item
it reads like this :
12345
with no new line after printing each item.
Thanks,
Comment