Posts by Willian Silva • 1 point
1 post
-
-1
votes2
answers120
viewsA: Beginner in Python
an alternative not very simple, but that works: notas = ['10','20','30','40','0','0'] sem_zeros = [n for n in notas if n != '0'] for nota in sem_zeros: print(int(nota))…