how to split an input in python by comma

lst = input().split(',')

Here is what the above code is Doing:
1. It’s creating a list called lst.
2. It’s asking the user to input a list of numbers separated by commas.
3. It’s storing the user’s input in the list lst.