IndentationError: unindent does not match any outer indentation level in Python

I’m getting the following error in my Python code:

IndentationError: unindent does not match any outer indentation level

Here’s my code:

I’m not sure what’s causing this error. Can someone help me figure it out? Is there a better way to structure my code to avoid this error? Thanks!

1 Like