When the user confirms the input i want to print a message in the same line of the input, in this case, a symbol of correct or incorrect.
I tried using end='', but it doesn't seem to work
answer = input('Capital of Japan: ', end=' ')
if answer == 'Tokyo':
print('✔')
else:
print('❌')
So if the user type 'Tokyo', that is what i expected to show up:
Capital of Japan: Tokyo ✔
Instead, i get this error:
answer = input('Capital of Japan: ', end=' ')
TypeError: input() takes no keyword arguments