fork download
  1. L = [('Bob', 75), ('Adam', 92), ('Bart', 66), ('Lisa', 88)]
  2. def by_score(t):
  3. return t[:][1]
  4.  
  5. L2 = sorted(L, key = by_score , reverse = True)
  6. # your code goes here
Success #stdin #stdout 0.11s 14100KB
stdin
Standard input is empty
stdout
Standard output is empty