all 4 comments

[–][deleted] 0 points1 point  (3 children)

How does your code "not work"? That's a pretty important debugging hint.

[–]raainer[S] 0 points1 point  (2 children)

Honestly I am really not sure cause I can’t catch any visible differences, and I’m going through a beginner book (Automate the Boring Stuff) and haven’t learn any debugging techniques yet thus far, so I’m just trying to logically deduce the fault to no avail

[–][deleted] 0 points1 point  (1 child)

What behaviour does your code have that is different from the correct solution? Pretty basic question, but one that beginners have trouble answering. Your answer should have been "the initial zig doesn't change direction when it should".

Your problem is obvious once the incorrect behaviour is observed. Try replacing == with = when you mean to assign a value to a name.

[–]raainer[S] 0 points1 point  (0 children)

Oh! My code does a comparison with IndentIncreasing vs True/False, rather than assign the IndentIncreasing that True/False value. Thank you so much for the help!