Quiz Catalog

Catalog of quizzes

list_of_tuple = [('bob', 35, 'mgr'), ('sue', 40, 'dev')]

data = list(map((lambda row: row[2]), list_of_tuple))

print(data)
['mgr', 'dev']
  • build-in/map
  • build-in/list
  • list/literal
  • tuple/literal
  • lambda

dct = {3: 4, -1: 9, 4: 1, -2: 4}

num = max(dct, key=lambda k: dct[k])

print(num)
-1
  • build-in/max
  • lambda
  • dict/literal