Toggle navigation
Log in
Sign Up
Log in
Sign Up
Appium
C
C#
C++
Docker
Go
Informatica
Java
JavaScript
Kafka
Numpy
Oracle
Pandas
PHP
Py Spark
Python
R
React Native
Scipy
SFTP
Tableau
Teradata
TGMC
UNIX
Introducing
Radical.sh
Forget Code launches a powerful code generator for building API's
Forget_Code.Models.CategoryViewModel
Add a new snippet
Basics
3
Conditional Statements
2
Dictionary
4
Input & Output
1
Lists
20
Sorting
1
Strings
1
Tuple
4
Choose Category
Create a Tuple in Python
Forget Code
Python
Create a Tuple
In python, tuple can be created with ( ) braces. The main difference between lists and tuple is tuple is immutable, meaning elements cannot be assigned or modified individually.
Example : Create of tuple in python
tup = (10, 20, 30) tup[1]
Output
20
Tags for Create a Tuple in Python
how to create tuple in python
access values from tuple in python
DP_Tuple
Contribute to Forget Code, help others.
Add snippet