Decode School

Decode School - The School for Problem Solvers
Welcome to My Blog.
Need Assignment / Project Guidance (or) Training in Python?

Python Tuple Assignment

Python program to illustrate what is tuple assignment?

Program or Solution

					    
							
num1,num2,name=101,102,'John'
print("{} {} {}".format(num1,num2,name))

					    
					

Program Explanation

In python you can assign multiple variables with multiple values in single statement using comma.

This feature is called tuple asssingment.