The exercise asks me to store 5 numbers read in a list and to show the POSITIONS of the largest number, but I do not know how to do it, because if the higher number is repeated 1 time, the program works for me, but if it is repeated several times, I do not know how to show me all the positions where it is repeated. This is my code:
try:
lista=[]
pos=1
for i in range(5):
numero=int(input("Digite un numero entero: "))
lista.append(numero)
print("El mayor numero esta en las posiciones:")
mayor=lista[0]
for l in range(len(lista)):
if lista[l] > mayor:
mayor=lista[l]
pos+=1
print(pos)
except ValueError:
print("El valor digitado debe ser numerico")