Bonjour,
J'ai un dm maison à faire pour la semaine prochaine et je n'arrive pas à un exercice.
Celui-ci se présente sous cette forme:
Import random
a= random.randint (1,5)
If a==1
B= random.randit (1,3)
If b==1:
Print("Rouge")
Else:
Print("orange")
Else:
B=random.randit(1,12)
If b>8:
Print("rouge")
Else:
Print("orange")
Merci d'avance pour votre aide🤓
Jai oublie la question
Les événements "a=1" et "Le programme affiche rouge" sont ils indépendants? Justifier.(on pourra s'aider d'un arbre)
Vous devez être membre accéder à ce service...
Pas encore inscrit ?
1 compte par personne, multi-compte interdit !
Ou identifiez-vous :