There are primarily two types of errors that you might come across while solving task on GLabs.

  • Syntax Error

  • Test Case Error


Syntax Error

Syntax error generally occurs when the program is not written in the correct format and hence the Python interpreter is not able to execute the same.


  • Check the error message shown in the output

  • Try to search locate the error in the code and refer the relevant Python documentation for the syntax

  • Search on stack overflow for similar errors


A typical syntax error is shown in the following screenshot. A syntax error will always be displayed in red colour under the Output section.




Test Case Error

GLabs validates every single line of code written against some test cases. Test case error arises when the output of the program does not match the expected output (as given by the instructions).


  • Check whether you have given the variable name properly which is given in the instruction. 

  • Check the step by step output as given by the instruction. (Tip: try to print output at each step, so that it is easier to debug)


A typical test case error is shown in the following screenshot. A test case error will always be displayed as issues under the Output section.



If you are unable to resolve the error we recommend you to follow the steps given below

  • Ask peers onto the slack channel, the community would be more than happy to help you with the same.

  • If you are unable to get a resolution, raise a ticket from GLabs and we will help you with the same.