I would like to know if I can regroup multiple if statements into output, for example:
if x == "Hey":
print("hello")
if x == "Hello":
print("Hello")`
I was wondering if the two if statements would have a shortcut one output (aka print("Hello") in this situation).
Aucun commentaire:
Enregistrer un commentaire