[Tutor] all elements equal in tuple or list
Dimitri D'Or
dimitri.dor at fssintl.com
Thu Nov 18 13:55:39 CET 2004
Hello list,
I'm quite new in the Python world and I'm coming from Matlab.
I have a tuple (or a list) made itself of lists and I want to know if all
lists in this tuple are equal. Is there a function to do that ?
Clearly, I have :
t=(a,b,c) wherein a,b and c are lists of equal size. (Note that the number of
lists in the tuple is arbitrary).
I want to know if all the lists in the tuple are equal.
In Matlab, I simply use equal(A,B,C) or equal(D{:}) if D is a cell array
containing A, B and C as cells.
A suggestion for me ?
Thank you,
Dimitri
More information about the Tutor
mailing list