Python – How to avoid line break after user input in Python


How to change below code and remove unnecessary new line?

#"Please guess a number!"
choice = input ("Is it ")
print ("?")

Is it 10


So that result will look like

Is it 10?

Best Solution

you mean something like that?

choice = input ("enter somthing...")
print ("Is it "+str(choice)+"?")