Why people do this?
def do(it):
if ok():
return {"data":work(it)}
elif lol():
return None
elif ha():
return "Nope"
else
raise Hell()
That's 3 different ways to say things went wrong. Coding calling this will need equal # of if's
♡ 0 ↻ 0
August 10, 2017
Why people do this?
def do(it):
if ok():
return {"data":work(it)}
elif lol():
return None
elif ha():
return "Nope"
else
raise Hell()
That's 3 different ways to say things went wrong. Coding calling this will need equal # of if's