Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lista_numeros = [-11, 29, 2, -2, -5, 7, 13, 19, -1, 23]
- lista_numeros_positivos = [n for n in lista_numeros if n > 0]
- print(lista_numeros_positivos)
- lista_numeros_negativos = [n for n in lista_numeros if n < 0]
- print(lista_numeros_negativos)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement