python 2 input with spaced string to int code example Example: how to take input in python3 separated by space inp = list(map(int,input().split()))