Positioning of caret in output

Pycharm Community 5.0.3
Python 3.5.1
Windows 7 SP1

The code I am using is:

"nameSelf = input("What is your name? ")
print (nameSelf)

nameFriend = input("Thank you, and now what is the name of your friend? ")
print (nameFriend)"

When I run it, this is what I get after entering data for "nameSelf" and pressing ENTER:

"What is your name? Polly
Polly
Thank you, and now what is the name of your friend? "

My problem is that the text insertion caret is positioned at the start of the last line, just in front of "Thank you".  It should be positioned at the end of the line, after the question mark.

I can't work out what I am doing wrong or whether, perhaps, it is a "design feature" or what.  It doesn't make sense to me for the text insertion point to be where it is.

I would be grateful for any suggestions, please?

Please sign in to leave a comment.