Computer Science, asked by dreamchaser76, 13 days ago

identify the following data type?
X=(1,2,3,4)​

Answers

Answered by BrainlyProgrammer
3

Answer:

tuple data tyoe

Explanation:

x=(1,2,3,4)

print(type(x))

<class 'tuple'>

type() returns data type of the variable

Answered by anindyaadhikari13
1

Answer:

  • The data type of X is - tuple (Python)

Explanation:

• A tuple is a collection of items which is ordered and unchangeable (cannot be modified).

• Tuples are written with round brackets. So, here X is a tuple.

This can be understood by a simple códe.

X = (1,2,3,4)

print(type(X))

>> <class 'tuple'>

The type() function returns the type of the argument. From the output, it is clear that X is a tuple.

•••♪

Similar questions