elements

PythonF

Peak Elements Count

Peak Elements Count: N integers are passed as input. The program must print the count of peak elements among the N integers. An element is a…