index-error

I got an IndexError: list index out of range in sys.argv[1]

I got an IndexError: list index out of range in sys.argv[1] Question: I want to plot this code but it entered IndexError: list index out of range in the line: k = float(sys.argv[1]) Can anyone help me how to fix this? canWidth=500 canHeight=500 **strong text** def setupWindow () : global win, canvas from tkinter import …

Total answers: 1