Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+5 votes

I ran into a problem with this error message during project 1 and was wondering if anyone could help direct me to somewhere that I can use to help explain this further and how it should be formatted.

asked in old_CSC201 by (1 point)

1 Answer

+1 vote

Executing the statement sys.exit(-1) ends execution of the program. No statements in the program file following sys.exit(-1) will be executed. The -1 indicates exiting following an error which we would be doing in this case.

In this program, we want to execute sys.exit(-1) when the file didn't have the art extension and after you print an error message.

answered by (1 point)
...