[Python] Effective way of finding the min/max/sum of a list without having to create another...

Discussão em 'Python' iniciado por Stack, Setembro 10, 2025.

  1. Stack

    Stack Membro Participativo

    For example I couldn't figure out how to find the minimum value in the list called "cars" by simply printing out print min(cars) however making variable called X worked

    cars = range (1,101)
    x = sum(cars)
    print( x)

    Continue reading...

Compartilhe esta Página