Question: (PYTHON)Heat wave is when a period of at least five consecutive days is over 25.0 degree Celsius or when at least three days is over
(PYTHON)Heat wave is when a period of at least five consecutive days is over 25.0 degree Celsius or when at least three days is over 30.0 degree Celsius.
How to find out if there's a heat wave when list of inputs are given?
Print 'yes' when heatwave is found. Print 'no' when heatwave is not found.
Example1: INPUT: 23.0 25.1 25.4 25.3 25.2 25.0 27.1 stop
OUTPUT: Yes
Example2: 25.6 23.0 31.2 30.0 19.2 34.4 stop
OUTPUT yes
Example3: 30.0 23.2 34.2 24.9 25.4 25.3 25.4 24.4 stop
OUTPUT: no
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
