I’m having trouble with the extra credit on Exercise 13 of Learn Python the Hard Way.
It wants me to combine argv with raw_input, which I can’t figure out.
Could anyone help me out? Examples would be great!
Thanks so much!
Edit: The original code for the exercise is:
from sys import argv
script, first, second, third = argv
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable is:", third
an example would be indistinguishable from the answer, which is unlikely to be the best way to help you. perhaps you are overthinking the question, though. i believe the idea is to use some command-line input (which goes into argv) and some entered input (which comes through raw_input) to make a script which reports on both. For example, it might produce: