Python: Can You Use Raw_input And Template Strings? (%s)
I have this line of code.. raw_input('Hello, %s, this is a question: ') % name but i get and error saying: 'Not all arguments converted during string formatting' Is it possible
Solution 1:
name
is in the wrong spot; change to:
raw_input("Hello, %s, this is a question: " % name)
for example:
>>>name = 'Mary'>>>raw_input('Hello, %s, this is a question:' % name)
Hello, Mary, this is a question:
Post a Comment for "Python: Can You Use Raw_input And Template Strings? (%s)"