Creating And Using Tuple In Python

Introduction

 
In this blog, I am going to explain, how to create and use Tuple in Python. It will be used to display the creation of Tuple in the Run Module.
 
Software requirement
 
Python 3.5.2h
 
Simple program
  1. print('welcome To C#corner............')  
  2. print('Tuples :')  
  3. a=("C#","Corner","by a","Tuples")  
  4. print("%s %s %s %s" %("C#","Corner","by a","Tuple"))   
Explanation
 
In this blog, I will explain the creation of Tuple. A tuple is used to give the variable name in the correct format. In the code, I have created Tuple and it will be displayed below the tuple.  Let us see the output, given below:
 
Output
 
output