how to use split function in python to take integer input code example Example: taking input of n integers in single line python in a list arr = list(map(int, input().split()))