I get an error code with correct answer?

Course Name: Python For Trading!, Section No: 6, Unit No: 4, Unit type: Exercise

I get an error code while I know I have the correct answer? It’s literally the solution code?
“An error occured while running the code:” is the error message I get.