[Python] Como criar uma função para achar o maior valor em uma lista?

Discussão em 'Python' iniciado por Stack, Janeiro 27, 2025.

  1. Stack

    Stack Membro Participativo

    Não estou conseguindo inserir esse algoritmo dentro de uma função

    max_trip = 0

    for val in trip_duration_list:
    if int(val) > max_trip:
    max_trip = int(val)

    Continue reading...

Compartilhe esta Página