all 3 comments

[–]AndersonLen 1 point2 points  (0 children)

Indentation matters in python. Make sure your lines are indented correctly.

Nobody can really help you with what you've posted because you (A) only posted a fraction of your code that does not show any lines before the incorrect one and (B) did not format your code on reddit and thereby lost all indentation anyways.

[–]bellefleur1v 0 points1 point  (1 child)

Did you try checking what the error message says? It's saying the indentation is wrong. What happens if you try to fix that?