A tuple is immutable and ordered and it allows duplicate values but the array is different unlike the arrays in other programming languages we have list in python A list is ordered and it can be changed and it allows duplicate values when we want to make any operations on tuple suppose if we want to change the element at a particular index we have to type cast the tuple into a mutable thing
for example lets see this in detail:
>>>a=(1,2,3,4)
>>>b=list(a)
>>>b[0]=5
>>>m=tuple(b)
>>>m
>>>(5,2,3,4)
But here we are taking about arrays in python it provides a separate library such as numpy to make manipulations on array
There is a variation between numpy Arrays and lists in python
>>>list1=[1,2,3,4]
>>>type(list1)
>>><class 'list'>
suppose if you want to work with the numpyarrays the firstly You need to install the library in the python by using the pip command
then you need to import numpy
>>>import numpy
>>>p=numpy.asarray([1,2,3,4])
>>>p
>>>[1 2 3 4]
we get a list without the delimeter comma
this is the main difference between list arrays and tuple in python