Sep-30-2018, 11:50 AM
Another option comes to mind from the excellent example @ichabod801 gave.
The <somestring> can be pretty much anything (several newlines perhaps). Here, the empty string means that the next bit of output, from the
print('Enter money here\n(example 5.00): ', end='') userCredit = input()The
end=<somestring>
in a print function overrides the default \n
that is normally output after everything else output by a print()
call.The <somestring> can be pretty much anything (several newlines perhaps). Here, the empty string means that the next bit of output, from the
input()
function, continues on the same output line. (If there had been any prompting text inside the input()
call, that would have appeared first on the same line as the preceding print()
output before Python pauses for input.
I am trying to help you, really, even if it doesn't always seem that way