Python : If, elif & else

De www.yakakliker.org

Exemple :

a = 10
if a > 50:
    print('Supérieur à 50')
elif a > 20:
    print('Supérieur à 20')
elif a > 5:
    print('Supérieur à 5')  # Cette instruction sera exécutée
else:
    print('Inférieur à 5')

Liens

https://dyma.fr/developer/list/chapters/core/61969e0166ef0d5e68f7f647/lesson/python/619801296638f0c94cbbe6c0/3/2


compteur web gratuit sans pub