Python coding question. I don't know what to do IndentationError

Asked 1 weeks ago, Updated 1 weeks ago, 1 views

What I'm trying to make is that if you turn on that gray switch, you can enter your annual salary and make it appear on that LCD screen that you collect more taxes if your annual salary is above a certain level, but I don't know what to do. Is there a problem with that code? I'm a beginner at coding, so please help me.

python arduino

2022-09-20 08:55

1 Answers

In Python, blocks are distinguished using indentation. (if statements, for statements, function definitions, etc.)

If you look at the capture screen, you will see IndicationError on the 14th line. You do not need to indent a step in the 14th line starting with if. This is an error.

2022-09-20 08:55

If you have any answers or tips

© 2022 pinfo. All rights reserved.