So i´d like to know if there´s a way to shorten an "if" that contains more than one command. I know you can do it for single command if´s like:
if x > y:
print("normal if")
and it becomes:
if x > y: print("shortened if")
But how could it be done in this case for example?
if x > y:
print("normal if")
some_number *= 2
Aucun commentaire:
Enregistrer un commentaire