take comma and space separated integers from input python code example
Example: how to input comma separated int values in python
lst = list(map(int, input("Enter comma separated values: ").split(",")))
lst = list(map(int, input("Enter comma separated values: ").split(",")))