0

How to change a loop of numbers to print it in a column

print loop in straight line along screen

8th Jul 2018, 10:28 AM
Harsh Ris
Harsh Ris - avatar
4 Answers
+ 1
You want it to print horizontally or vertically?
8th Jul 2018, 10:31 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 1
By default it's print ("something",end="\n")
8th Jul 2018, 10:36 AM
Yugabdh
Yugabdh - avatar
+ 1
To print horizontally print the numbers normally. To print vertically print the numbers with '\n' at the end.
8th Jul 2018, 11:06 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
print ("your number ", end =" ")
8th Jul 2018, 10:35 AM
Yugabdh
Yugabdh - avatar