lista = input().split()for i in range (len(lista)): lista[i] = int(lista[i])print(lista)
123 234 456 678
[123, 234, 456, 678]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!