Quiz Catalog

Catalog of quizzes

i = {}

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

a = (9)

print(type(a))
<class 'int'>
  • int
  • type
  • build-in/type

a = "Tree",

print(type(a))
<class 'tuple'>
  • tuple
  • type
  • build-in/type

a = "Hello"

print(type(type(a)))
<class 'type'>
  • type
  • build-in/type

a = (el for el in range(105))

print(type(a))
<class 'generator'>
  • generator
  • type
  • build-in/type

a = {}

print(type(a))
<class 'dict'>
  • dict
  • type
  • build-in/type

elements = {
  "key": "value",
  4: 20,
  "11": (1, 7, 2)
}

print(type(elements.keys()))
<class 'dict_keys'>
  • type
  • dict/operation/keys

elements = {
  "key": "value",
  4: 20,
  "11": (1, 7, 2)
}

print(type(elements.values()))
<class 'dict_values'>
  • type
  • dict/operation/values

value = (4, 5, 6)

print(type(value) is tuple)
True
  • tuple/literal
  • type

x = 3+5j

print(type(x))
<class 'complex'>
  • complex
  • type
  • build-in/type

text = b"Hello, World!!!"

print(type(text))
<class 'bytes'>
  • bytes
  • type
  • build-in/type

a = "2"
b = 2
c = type(b)

if c(a) is b:
  print("True")
else:
  print("False")
True
  • expression/operation/is
  • type