python:conditions

Ceci est une ancienne révision du document !


Conditions

n = 6
print("Début")
if n> 10 or n <0 :
    print("branche if")
elif n <5 :
    print("branche elif")
else :
    print("branche else")
print("fin")

donne

Début
branche else
fin
  • python/conditions.1571577703.txt.gz
  • Dernière modification : 2020/07/24 00:23
  • (modification externe)