31.The number of peaks h=[0.9,1.2,1.22,1.1,1.6,0.99] print sum([1 for i in range(1,len(h)-1) if h[i]>h[i-1] and h[i]>h[i+1]])