Quiz Catalog

Catalog of quizzes

element_dict = {1: 4, "value": 20, "key": 1, 18: .9}
if any(element_dict):
  print(element_dict.keys())
dict_keys([1, 'value', 'key', 18])
  • dict/operation/keys
  • build-in/any

tpl = (4, 1, 0, 'a')

a = any(tpl)

print(a)
True
  • build-in/any
  • tuple/literal
  • boolean