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
👍 to @mispy, this is how I tend to write any of my code.