Skip to content
Sign upLog in
← Back to Community

Why do input statements overlap on the console and how to fix it? (python)

Profile icon
CodyWilcox

I'm working on a school project and cant tell how my work is going because when I run the code all of the input statements look like this
why


thanks in advance for help.

Voters
Profile icon
CodyWilcox
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

the simplest solution is to try using \n in your input. But it randomly in your input. It should work

Profile icon
[deleted]

You can use triple quoted strings in Python to preserve formatting, like so:

choice = input("""Which one of these do you like to eat the best: 1. cake, 2. biscuits, 3. pizza? > """)
Profile icon
CodeLongAndPros

Please link to the repl

Profile icon
CodyWilcox

@CodeLongAndPros
https://replit.com/@noBoolBit/CreateTask-CodyWilcox#main.py

Profile icon
CodeLongAndPros

@CodyWilcox
It's private?

Profile icon
CodyWilcox

@CodeLongAndPros
its on teams so ill copy it over to my repl https://replit.com/@CodyWilcox/help#main.py

Profile icon
CodeLongAndPros

@CodyWilcox
Try widening the terminal?

Profile icon
CodyWilcox

@CodeLongAndPros
if you are talking about the console it only goes back to normal if you make it really small, but then it cuts off a lot of the text and gets covered by the search and clear bar.