F
F
FuFX2018-11-03 19:42:21
Python
FuFX, 2018-11-03 19:42:21

Python expected an indented block error, how to fix?

I'm writing a calculator with this error:

if user_action == 'ВЫЧИТАТЬ' or user_action == 'вычитать' or user_action == 'Вычитать':
     ^
IndentationError: expected an indented block

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-11-03
@FuFX

You either don't have the required indentation on this line, or you have extra indentation before this line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question