how to read multiple input in a single line in python and append to list code example
Example: taking input of n integers in single line python in a list
arr = list(map(int, input().split()))
arr = list(map(int, input().split()))