I have the following python code in which I have to get the largest number from the list without using the max function I have taken the code from the internet but it lacks an explanation so I would like someone to explain it to me
lista = [3, 7, 23, -2, 0, 6]
#Declaramos la variable max que sea igual a 0
max = lista[0]
#No se que hace este bucle exactamente
for lista in lista:
if lista > max:
max = lista
print("El máximo es " + str(max))