up
This commit is contained in:
32
espion.py
Normal file
32
espion.py
Normal 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")
|
||||
Reference in New Issue
Block a user