DEV Community

Discussion on: Daily Challenge #187 - Most Sales

Collapse
 
maskedman99 profile image
Rohit Prasad

Python

for i in range(len(prices)):
        prices[i] = int(amounts[i])*int(prices[i])

j = max(prices)

for i in range(len(prices)):
        if prices[i] == j:
                print(products[i])