Doesn't happen on Linux, must be a Windows specific problem.
It looks like the usercar
input includes a carriage return after "corolla" making the .
overwrite the first character position. Might be something related to what the Python 3 universal newlines think is the correct end of line in a windows terminal, taking the line feed as end of line, and leaving the carriage return in the string.
Try running your program in a windows terminal outside of Geany and see what happens.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.