How do you assign values to three variables at once in Python?

In Python, you can assign values to three variables at once using the following method.

a, b, c = 1, 2, 3

This way, you can assign 1 to variable a, 2 to variable b, and 3 to variable c.

bannerAds