I\'m new to python and I\'m trying to scan multiple numbers separated by spaces (let\'s assume \'1 2 3\' as an example) in a single line and add it to a list of int. I did i
For python 2.7 another trick is:
arr = [1,2,3] for num in arr: print num, # will print 1 2 3