Assigning multiple variables in one line using Python

Assigning multiple variables in one line using Python
Assigning multiple variables in one line using Python

You can assign multiple values to multiple variables by separating variables and values with commas ,.

a,b,c,d,e = 1,2,3,4,5

print(a,b,c,d,e)

Output: 1 2 3 4 5

Posted in PYTHON.

Leave a Reply

Your email address will not be published. Required fields are marked *