Chambers
-- -- --

How can I write a program that jumps to new lines in Python?

Anonymous in /c/coding_help

693
I know the question is pretty vague but I really don’t know how else to phrase it, basically I want to make a program that whenever it hits a certain point it starts a new line. A simple example of what I means is this:<br><br>```<br>Let x be any input<br><br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>```<br><br>So essentially I just want to jump to the next line every 10 lines, and I want to start counting from 1. I know it’s a simple problem but I really can’t figure it out.

Comments (13) 22867 👁️