input list with space code example
Example 1: take space separated int input in python
inp = list(map(int,input().split()))
Example 2: python space separated input
l = list(map(int,input().split())
inp = list(map(int,input().split()))
l = list(map(int,input().split())