-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hello
I am new to programming
Is this code written by Python version 2 or 3?
After I installed the pillow library and other libraries, the following message appeared in the program execution
Traceback (most recent call last):
File "D:\main.py", line 12, in
BOARD_WIDTH = int(args[1]) #CM
IndexError: list index out of range
To solve this problem, I did the following
args = [0, 2000,1 , 1, 300, 4000 ]
in
#GET INPUT CONSTANTS HERE
args = [0, 2000,1 , 1, 300, 4000 ]
args = sys.argv
I added and the program worked
Was my work wrong?
What should I do to improve the quality of the output?
please guide me
Metadata
Metadata
Assignees
Labels
No labels