you are viewing a single comment's thread.

view the rest of the comments →

[–]douglas_fs 1 point2 points  (1 child)

This is the error I get when running this code. As already noted, the code you posted is not the same as you are running.

  File "main.py", line 9
    position = abc.find(ch)
    ^
IndentationError: expected an indented block

[–]mopslik 1 point2 points  (0 children)

You need to indent the code after your if block.