Had a quick question regarding running a script in Python. I have the following code typed into a file saved as "ex13.py":
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
When I try to simply "run" it from the dropdown menu in IDLE, it gives me this error:
Traceback (most recent call last):
File "/Users/brianerke 2/Desktop/ex13.py", line 3, in <module>
script, first, second, third = argv
ValueError: need more than 1 value to unpack
What do I need to type into the interpreter/terminal to run this script? Thanks so much!
Brian