tuple in Python can be created by enclosing all the comma-separated elements inside the parenthesis (). Elements of the tuple are immutable and ordered. It allows duplicate values and can have any number of elements. You can even create an empty tuple.
Answers & Comments
Answer:
tuple in Python can be created by enclosing all the comma-separated elements inside the parenthesis (). Elements of the tuple are immutable and ordered. It allows duplicate values and can have any number of elements. You can even create an empty tuple.
Make as brainelist answer
[tex]\huge\bf\underbrace{\red{A}\orange{n}\blue{s}\pink{w}\green{e}\purple{r}}[/tex]
Here is how u create tuple :
t = [1, 2, 3, 4, 5]
print(t[0])
t[0] = 35 - this command will give error!!