Listing 06-11: Verification of the highest amount

##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 06\06.11 - Verification of the highest amount.py
# Description: Verification of the highest amount
##############################################################################

L = [1, 7, 2, 4]
maximum = L[0]
for e in L:
    if e > maximum:
        maximum = e
print(maximum)
Click here to download the file