Provided a list of int+str
like hand=['2S', '10D', '3H']
Q1. I want to disassociate int in a list by key=max s.t.
suits=['D','H','S'] where indices of suits follow sequence as in ranks, mapped in other words
so that when i zip(ranks,suits)==> hand back again in the descending order as
Q2. Is there a way to use to For loops in a single statement?
Eg: For s in something and r in something or For r,s in name1,name2:
for the 2nd 1 error is too many elements to unpack
Last edited by lovecodecakes
on Wed Mar 13, 2013 7:33 pm, edited 2 times in total.