make comma separated string python code example
Example 1: python list comma separated string
hobbies = ["basketball", "football", "swimming"]
print("My hobbies are:") # My hobbies are:
print(", ".join(hobbies)) # basketball, football, swimming
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