Solve problem "Greater than neighbours" online - Learn Python 3 - Snakify

Greater than neighbours


Given a list of numbers, determine and print the quantity of elements that are greater than both of their neighbors.

The first and the last items of the list shouldn't be considered because they don't have two neighbors.

Advertising by Google, may be based on your interests

In all the problems input the data using input() and print the result using print().