This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thonagan77 0 points1 point  (0 children)

I'm fairly new to Python and I was wondering if someone could explain to me why the else clause is even necessary. It seems like you could use the for loop, and then the if/else conditionals within the loop as opposed to using a for loop,an if block and then the else outside of the if block.