Question: please give the programming code in python Dexter is going mountain climbing and needs to know where all the mountains are. He has a map

please give the programming code in python
Dexter is going mountain climbing and needs to know where all the mountains are. He has a map of all the heights of the different hills in a aD array. He defines a mountain as that hill whose height is greater than the height of it's neighbours (note: diagonal elements are not neighbours). For example, in this array A : 1 2 1 3 1 1 4 3 3 12 4 There are totally 4 mountains: Atel t1, Al11 121, At2) (el and Al2) 13] are all mountains Given a 2D array, print the number of mountains present. You just need to complete the method. You don't need to write the entire program You don't need to take any inputs from stdin Please don't write header files, or the main method. Just complete the method given to you You can define more methods if you want. Your Answor Language Python (a70) Pleaso uso spaces to indont your codo Uso 4 mpaces por indentation level
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
