Computer Science, asked by Mahek6112, 8 months ago

‼️what are tuples in python‼️​

may i have the right answer please

✔️Briefly explained answer will be marked as brainliest ✔️​

Answers

Answered by abrar8996
3

Answer:

A tuple is an immutable sequence of Python objects. Tuples are sequences, just like lists. The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use parentheses, whereas lists use square brackets. Creating a tuple is as simple as putting different comma-separated values.

Explanation:

hope it helps you

Mark me as BRAinliest xD

Answered by anvikshaelsa
2

Answer:

here's your answer.......

TUPLES: tuples are represented as list of comma- separated values of any data type within parentheses,eg-

p= (1,2,3,4,5)

q=(2,4,6,8)

r=('a','e','i','o','u')

h=(7,8,9,'A','B','C')

tuples like lists can be assigned to variables but individual elements of tuples cannot be modified as tuples are immutable.

I HOPE IT WILL HELP U.....

Similar questions