python separated by comma code example
Example 1: python input comma separated values
lst = input().split(',')
Example 2: comma separated variables python
# What you describe is tuple assignment:
a, b = 0, 1
# The above is equivalent to:
a = 0
b = 1