So, I would like to print a string with an exclamation mark at the end of the statement but without any space between the last word and the exclamation mark. For instance:
name = raw_input('Insert your name: ')
Now, I would like python to print something like this:
Your name is John!
So, I type:
print 'Your name is', name, '!'
And it returns me:
Your name is John !
What I want to do is to remove the space between the "John" and the exclamation mark.
Any ideas?
print "Your name is %s!" % (name)