You are viewing a single comment's thread. Return to all comments →
Tried this:
for a in range (1,n+1) print(str(a))
obviously i got wrong because it printed out vertical.
then this:
print(*range(1, n+1), sep='')
Much easier to understand.
Seems like cookies are disabled on this browser, please enable them to open this website
Print Function
You are viewing a single comment's thread. Return to all comments →
Tried this:
obviously i got wrong because it printed out vertical.
then this:
Much easier to understand.