Kodewick
Start learning →
Starter←→0 / 100

The priciest dish

#041StarterLists2 min

The little diner keeps every dish's price in a list. Write priciest(prices) to return the highest price. There is always at least one dish.

Examples
priciest([28, 45, 32])→45
priciest([12])→12
main.py
def priciest(prices):
    # your code here: the biggest number in the list
    return 0
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.