Python Tuple Assignment
Python program to illustrate what is tuple assignment?
Try your Solution
Strongly recommended to Solve it on your own, Don't directly go to the solution given below.
#write your code here
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.
Comments
Related Programs
- Python Hello World
- Python get input
- Python get Integer input
- Python get float input
- Python Decimal places
- Python New Line
- Python without new line
- Python tab Space
- Python Integer to Character
- Python Decimal to HexaDecimal
- Python Hexa Decimal to Decimal
- Python Decimal to Octal
- Python Octal to Decimal
- python Exponent representation
coming Soon
coming Soon