comma separated values python string code example
Example 1: list from comma separated string python
>>> my_string = 'A,B,C,D,E'
>>> my_list = my_string.split(",")
>>> print my_list
['A', 'B', 'C', 'D', 'E']
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