I can not do this exercise, neither with while nor with for. If you can give me the way you do with While and For, I'll be grateful.
Given a list of numbers, say the largest number on the list. Use the len () function to find out the list size and the while repeat structure to cycle through the list.
Remembering that the program should be done exactly as it is requested in the exercise.
Code that I managed to do, however super wrong:
lista = [0, 10, 20, 50, 80]
maior = lista[0]
while maior in lista < maior:
print(maior)