maj
This commit is contained in:
parent
d0bbde4a39
commit
ed86d20192
15
tempalert.py
15
tempalert.py
@ -1,10 +1,15 @@
|
||||
nbMesures = int(input())
|
||||
tempMin = int(input())
|
||||
tempMax = int(input())
|
||||
temp = int(input())
|
||||
temp = 0
|
||||
tempValid = True
|
||||
|
||||
while temp <= tempMax and temp >= tempMin:
|
||||
print("Rien à signaler")
|
||||
temp = int(input())
|
||||
while temp <= nbMesures and tempValid:
|
||||
temperature = int(input())
|
||||
tempValid = (tempMin <= temperature and temperature <= tempMax)
|
||||
if tempValid:
|
||||
print("Rien à signaler")
|
||||
else:
|
||||
print("Alerte !!")
|
||||
|
||||
print("Alerte !!")
|
||||
temp +=1
|
Loading…
x
Reference in New Issue
Block a user