how to take array input in python in single line for each row code example Example: how to take array input in python in single line arr = list(map(int, input().split()))