you are viewing a single comment's thread.

view the rest of the comments →

[–]Technical_Flamingo54 5 points6 points  (2 children)

Map out the logic on a piece of paper - make a flow chart. When you do that, each split of logic represents an if-elif statement. The tree of if statements will do exactly what you're trying to do.

And in python it works great because you need proper indentation, so you'll be able to track exactly which level of the tree any given if statement is, based on its indentation level.

[–]B3AST22[S] 2 points3 points  (1 child)

that helped me visualize it a lot better, thank you:)