Posts

Showing posts with the label command-line-arguments

LP3THW Excercise 13 [on hold]

LP3THW Excercise 13 [on hold] I am going through Zed Shaws LP3THW and I can't seem to excecute excercise 13 properly. from sys import argv #Read the WYSS Section for how to run this script 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) There are some scripts posted on github of the same excercise however I can't seem to run them either. :S https://github.com/r3gr3b/LP3THW/blob/master/ex13.py The Error Message: Traceback (most recent call last): File "C:/Users/adeel/Desktop/Adeel/Python/LP3THW/Ex13(3).py", line 3, in <module> script, first, second, third = argv ValueError: not enough values to unpack (expected 4, got 1) Page 72 of the https://github.com/broughjt/lp3thw/blob/master/lp3thw.pdf book. Any help would be super appreciated :) This question appears to be off-to...