Question to pythonistas out there: Is it acceptable to reduce indentation by doing:
if blah:
# do stuff
return
# do lots of other stuff
instead of:
if blah:
# do stuff
else:
# do lots of other stuff
Question to pythonistas out there: Is it acceptable to reduce indentation by doing:
if blah:
# do stuff
return
# do lots of other stuff
instead of:
if blah:
# do stuff
else:
# do lots of other stuff
i.e. I read the first as "if blah, stop what you would normally do and do this instead"