Nov-11-2019, 07:21 AM
Hi everyone,
I am trying to work through the text book 'Learn Python the hard way' and I am getting stuck on Exercise 13:
He explains this issue happens when you don't put enough arguments on the command when you run it. However I am not sure what he means because I copied his code exactly. Also he mentions reading WYSS section but I am note sure what that is, any ideas?
I am trying to run this in jupyter notebook
I am trying to work through the text book 'Learn Python the hard way' and I am getting stuck on Exercise 13:
from sys import argv script, first, second, third = argv program = input("What program do you use? ") print("The script is called:", script) print("Your first variable is:", first) print("Your second variable is:", second, f"{program}") print("Your third variable is:", third)ValueError: not enough values to unpack (expected 4, got 3)
He explains this issue happens when you don't put enough arguments on the command when you run it. However I am not sure what he means because I copied his code exactly. Also he mentions reading WYSS section but I am note sure what that is, any ideas?
I am trying to run this in jupyter notebook