Quiz Catalog

Catalog of quizzes

a = bytes(1)
b = b'\x00'
c = b'\x01'

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

a = b'\x00'
b = b'\x01'

print(a + b)
b'\x00\x01'
  • byte/literal
  • byte/operation/add

print(b'что выведет этот принт?')
SyntaxError: bytes can only contain ASCII literal characters
  • byte/literal

a = 'a'.encode()
b = b'a'

print(a == b)
True
  • byte/literal
  • string/operation/encode