Question: List trend _ data contains integers read from input, representing a sequence of data values. For each index i of trend _ data from 1
List trenddata contains integers read from input, representing a sequence of data values. For each index i of trenddata from through the secondtolast index:
The element at index i is a dunk if the element is less than both the preceding element and the following element.
If the element at index i is a dunk, then output 'Dunk: followed by the preceding element, the current element, and the following element, separating each element by a space.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
