Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. numero = int(input('Digite o primeiro número aqui: '))
  2. numero_1 = int(input('Digite o segundo número aqui: '))
  3. numero_2 = int(input('Digite o terceiro número aqui: '))
  4. lista_numeros = [numero, numero_1, numero_2]
  5.  
  6. numeros = int(input('Digite os números aqui: '))
  7. lista_numeros = [numeros]
  8.  
  9. numeros = [int(v) for v in input('Valores: ').split() if v.isdigit()]
  10. print(numeros)
  11.  
  12. 1 32 3 55
  13.  
  14. entrada = input('Digite os números aqui: ')
  15. numeros = [int(i) for i in entrada.split(' ')]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement