how we get a user input in python comma separated as integer 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(",")))