Introduction
In this blog, I will explain about accessing a Tuple value to another Tuple. I will try to access the value of the Tuple to another Tuple.
Software Requirement
Python 3.5.2
Simple Programming
- print("Welcome To C#Corner...........")
- # Accessing a Tuple Through Another Tuple
-
- a=("Zero","First","Second","Third")
- b=(a,"B's 1st Element")
- print("%s" % b[1])
- print("%s" % b[0][0])
- print("%s" % b[0][1])
- print("%s" % b[0][2])
- print("%s" % b[0][3])
Explanation
In this blog, I will explain about accessing the value through another tuple. In the first code, I will assign the "a" value and in the second code, I will display the "a" value by the code in the "a" value.
Output