Quiz Catalog

Catalog of quizzes

i = {}

print(type(i))
<class 'dict'>
  • dict/literal
  • type

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

dct = {1: 2, 2: 3, 3: 4, 4: [2, 5, 6]}

b = len(dct)

print(b)
4
  • build-in/len
  • dict/literal