Table of Contents
In this tutorial, we will discuss the concept of Tuple in python programming language
In python language, tuple is similar to a list with some difference. the differents between both are we can not changed the elements of tuple once after is is assigned. but list elenment can be changed
Creating tuple
When we create a tuple in Python, we can be place all elements inside the paranthisis and seperated by commas.
A tuple can be any type of data type(int, float, list etc) and any nyumber of elements
1. print every element from tuple
Related post
Data type in Python List in Python
Multiply two numbers in Java using scanner| 5 different ways In this article, we will…
5 Different ways to Divide two numbers in Java using scanner In this article, we…
Learn 8 Ways to Subtract Two Numbers Using Methods in Java In this article, we…
10 ways to subtract two numbers in Java In this article, we will discuss the…
Java Code Examples – Multiply Two Numbers in 5 Easy Ways In this article, we…
How to Divide two numbers in Java| 5 different ways In this article, we will…
This website uses cookies.