Quiz Catalog

Catalog of quizzes

def get_username(user):
  return user or 'anonymous'

print(get_username(None))
anonymous
  • expression/operation/or

a = None
b = False

print((a or b) or a)
None
  • expression/operation/or