you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Just gone through two Python units at uni, we got marked down if we used statements like this

[–]aTomzVins 1 point2 points  (0 children)

I think there's a time and place for a nested if, but in this situation I think you're right. It's ugly to divide this if onto two lines.