def adjacentElementsProduct(inputArray): for i in range(0, len(inputArray)-1): lis=(inputArray[i]*inputArray[i+1]) print(lis)
maxSoFar
def adjacentElementsProduct(inputArray): lst1 = 0 for i in range(0, len(inputArray)-1): lst2 = inputArray[i] * inputArray[i+1] if lst2 > lst1: lst1 = lst2< return lst1
def adjacent_element_product(inputArray): multi=[inputArray[i]*inputArray[i+1] for i in range(0, len(inputArray)-1)] print(multi)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)