If then en python

Résolu
lolita -  
 lolita -
Bonjour,
Comment convertir en Python:

a = 5; b = 0; c = 0
if a = 5 then b = 40; c = 30


par avance MERCI

Configuration: Linux / Firefox 95.0

2 réponses

yg_be Messages postés 24281 Statut Contributeur Ambassadeur 1 584
 
bonjour,
peut-être:
a = 5
b = 0
c = 0
if a == 5:
    b = 40
    c = 30
0
lolita
 
Merci beaucoup !!!
0