Discuss / Python / 2020-05-19

2020-05-19

Topic source

zhr305

#1 Created at ... [Delete] [Delete and Lock User]

L = [('Bob', 75), ('Adam', 92), ('Bart', 66), ('Lisa', 88)]

sorted(L, key=lambda x: str.lower(x[0]))


  • 1

Reply