This commit is contained in:
2022-12-28 09:00:47 +01:00
commit 9d755dc551
19 changed files with 201 additions and 0 deletions

32
espion.py Normal file
View File

@@ -0,0 +1,32 @@
taille = int(input())
age = int(input())
poids = int(input())
cheval = int(input())
brun = int(input())
prob = 0
crit1 = (taille >= 178 and taille <= 182)
crit2 = (age >= 34)
crit3 = (poids < 70)
crit4 = (cheval == 0)
crit5 = (brun == 1)
if crit1:
prob +=1
if crit2:
prob +=1
if crit3:
prob +=1
if crit4:
prob +=1
if crit5:
prob +=1
if prob == 5:
print("Très probable")
elif prob == 4 or prob == 3:
print("Probable")
elif prob == 2 or prob == 1:
print("Peu probable")
else:
print("Impossible")