You are viewing a single comment's thread. Return to all comments →
It makes a sortable tuple:
>>> x = 's' >>> (x.isdigit(), x.isdigit() and int(x)%2==0, x.isupper(), x.islower(), x) (False, False, False, True, 's') >>> x = 'G' >>> (x.isdigit(), x.isdigit() and int(x)%2==0, x.isupper(), x.islower(), x) (False, False, True, False, 'G') >>> (False, False, False, True, 's') < (False, False, True, False, 'G') True >>> x = '1' >>> (x.isdigit(), x.isdigit() and int(x)%2==0, x.isupper(), x.islower(), x) (True, False, False, False, '1') >>> (False, False, True, False, 'G') < (True, False, False, False, '1') True
Seems like cookies are disabled on this browser, please enable them to open this website
ginortS
You are viewing a single comment's thread. Return to all comments →
It makes a sortable tuple: