Quiz Catalog

Catalog of quizzes

x = 300

def foo():
  return x

print(foo() == x)
True
  • scope
  • boolean/operation/compare

a = "True"
b = True
c = 1

print(a == b)
print(b == c)
False True
  • boolean/literal
  • boolean/operation/compare

x = bool("")

print(x == True)
False
  • string/literal
  • boolean/operation/compare

value = True
assert value == True 
''
  • statement/assert
  • boolean/literal
  • boolean/operation/compare