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

  1. yg_be Messages postés 23437 Date d'inscription   Statut Contributeur Dernière intervention   Ambassadeur 1 588
     
    bonjour,
    peut-être:
    a = 5
    b = 0
    c = 0
    if a == 5:
        b = 40
        c = 30
    0