☰
Top

#5. LES OPERATEURS

Python
"""
    -arithmetiques : +  -  /  *  % ** // 
    comparaisons : ==, !=, > < , <=, >= 
    logiques : and, not, or
    
    True/False,  
    var1 and var2 = les deux vrai, 
    var1 or var2 = au moins une vrai
    
    avoir_bac and majeur 
    avoir_bac or majeur
    
    est_majeur not
    
    -affectation : =,+=; -=; **=, //= /= 
    ctrl+s
    ctrl+c
    ctrl+v
    ctrl+x
    ctrl+z
    ctrl+y
    ctrl+shift+u
"""


nombre1 = 1
nombre2 = 3



print(nombre2)

nombre2 += nombre1

print(nombre1)


Testez votre compréhension du chapitre

Laissez votre commentaire