Hello I'm new to python and programming in general (just started last night!) and I've written a tiny program thats pasted below:
name = str(input("please state your name: "))
print ("Welcome %s, your doomesday weapon of impolite mutant pigeons is ready for launch") %name
However this keeps returning this error:
Traceback (most recent call last):
File "prog.py", line 2, in <module>
print ("Welcome %s, your doomesday weapon of impolite mutant pigeons is ready for launch") %name
TypeError: unsupported operand type(s) for %: 'NoneType' and 'str'
Now I know that the usual answer to this kind of problem is to convert my input from a string to an integer and adjust the used operand type to match. However in this case, I actually want to use the input in string form so wheres the issue at?
P.S I'm using Ideone.com for compiling this code.