how to split inputs by space and \n in python code example Example: python space separated input l = list(map(int,input().split())