Is there any different between the following code? If there is, which one is preferred and why?
def if_else_1():
if True:
return True
else:
return False
def if_else_2():
if True:
return True
else:
False
Aucun commentaire:
Enregistrer un commentaire