mardi 24 mars 2015

Make sure that 17 values are not equal [Python]

I have 17 variables (S1, S2... S17) and I need to check that they are all different. Is there any way to do this other than



if S1 != S2 and S1!=S3...


because I don't really want to write 136 statements. Some method of a list, maybe?


Aucun commentaire:

Enregistrer un commentaire