Python code. This program will compute the min and max values in a sequence of points. It will state the min valley and max valley for increasing and decreasing sequences.