python - may i know how can we compare lists -
ok m making game poker card evaluator , storing values in list of list , each list containing values [rate,rank,max] or [1,2,3] question if want know players has hand mean list example comapring list list, if rate1==rate2(list2 in list of lists) have check rank same if condition true have go next value in same list , check other list having same first 2 values. if both lists equal equal else find greater one(rate,rank or max)
and infinite list dont know length of list , charcters
i hope understand know
sequences compared element-wise; there nothing need in order invoke desired behavior.
Comments
Post a Comment