[Solved] Expected an indented block, can’t find out where or why [closed]


There needs to be a body to those empty if/elif statements

Example (python 2 style):

if computerChoice == 0:
    print 'Something needs to be done here'
elif computerChoice == 1:
    print 'Something needs to be done here too'
elif computerChoice == 2:
    print 'And something needs to be done here, too'

Obviously replace those print statements with some implementation of what you are trying to do. But there cannot be nothing there.

Exception – a pass statement is acceptable if you really want to do nothing.

if computerChoice == 0:
    pass # do nothing here
elif computerChoice == 1:
    pass # do nothing here
elif computerChoice == 2:
    pass # do nothing here

4

solved Expected an indented block, can’t find out where or why [closed]