I tried the following program in ipython
In [1]: a = (1,2,3,4,5,6,7)
In [2]: b = [1,2,3,4,5,6,7]
In [3]: a
Out[3]: (1, 2, 3, 4, 5, 6, 7)
In [4]: b
Out[4]: [1, 2, 3, 4, 5, 6, 7]
In [5]: a == b
Out[5]: False
In the above program what is the difference between a
and b
? Why is a==b
returning False?