is the code he wants me to enter that fails
from sys import argv
script, user_name = argv
prompt = '> '
print "Hi %s, I'm the %s script." % (user_name, script)
print "I'd like to ask you a few questions."
print "Do you like me %s?" % user_name
likes = raw_input(prompt)
is the code I modified after seeing errors and knowing he uses python 2, I've just been making corrections to his code as I find them online.
from sys import argv
script, user_name = argv
prompt = '> '
print ("Hi" user_name: %s, "I/'m the", %s: script.)
print ("I;d like tok ask you a few questions")
print ("Do you like me %s") % (user_name)
likes = input(prompt)
All %s
, %d
%r
have failed for me. Is this a python 2 convention? Should I be using something else?
for example
foo = bar
print ("the variable foo %s is a fundamental programming issue.)
I have tried using tuples? as in:
print ("the variable foo", %s: foo, "is a fundamental programming issue.")
with no success