python comma separated number code example
Example 1: thousands separator python
>>> num = 10000000
>>> print(f"{num:,}")
10,000,000
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