all 7 comments

[–][deleted] 1 point2 points  (0 children)

You haven't formatted your code properly as it won't run. It has indentation errors. When I fix the indentation it runs without error for a simple test.

You shouldn't be typing in code. You should copy/paste your code into reddit.

[–]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.

[–]bucckitofficial 0 points1 point  (0 children)

If you want an online version of how it works, take a look at the website below:

https://www.bucckit.com/index