24
Last seen 6 years ago
Member for 11 years, 6 months, 24 days
Difficulty Normal
You can replace
if len(stack):
with just
if stack:
as the empty list is considered false in the same way you're using 0 to be false there.
More