-1
How do I use input and prevent it from skipping a line before the next one in Python? for example:
Digite N: 1
Digite dígito para A: 5
Digite dígito para E: 9
Digite x: 8.25
Digite y: 7.3
Errou
Código: 9
my code returns that:
Digite N: 1
Digite dígito para A: 5
Digite dígito para E: 9
Digite x: 8.25
Digite y: 7.3
Errou
Código: 9
What do you mean? The user wouldn’t have to press Enter to confirm the entry? this would already skip a line
– underfilho
good, that’s right. and how to stop it from jumping?
– Tiago Rasses Ras
Input() does not skip line. It will drop to the bottom line when the user presses
enter
. The result is the same as you asked the question.– nosklo
showw, thanks a bro!!!!
– Tiago Rasses Ras
then @nosklo , I edited the question, now it’s chlorine the difference
– Tiago Rasses Ras
@But I don’t know how you got this second result without seeing your code. I did it here and it looked like you wanted it; it’s not skipping any line here.
– nosklo
Tiago, please edit your question and add your code. Only with the output there is no way to check what is wrong.
– Woss
It has already improved a lot with its edition, but it lacks the [mcve] with the problem for the community to identify the problem.
– Bacco