Arithmetic formatter trouble

Not sure why it keeps showing an error. Have tried moving the if statement into different tab ‘columns’ and doesn’t work.

Don’t know why there is an error in main.py either.

The error message is telling you in which file the error is happening and below that the actual line, referring to this part of your code:

  if solve:
  string = first + "\n" + second + "\n" + lines + "\n" + sumx
  else:
  string = first + "\n" + second + "\n" + lines
  return string

You are missing the indentation for the if-else blocks.

The error is happening in “main.py” AND “arithmetic_arranger.py” because the error message is so nice to tell you every position it’s running into the problem. Well and it runs into a problem while being in main.py importing the arithmetic_arranger.py :wink:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.