list(map(int,p)) code example Example: python map input list_of_inputs=list(map(int,input().split()))