Categories

May 17, 2019 in Python
Q: Which statement creates the bytes literal when run?

a)bytes_literal = bytes.encoded.count(0x54)

b)bytes_literal = bytes.str.count(0x54)

c)bytes_literal = b'Copyright \xc2\xa9'

d)bytes_literal = bytes(str_literal,'utf-8')

Related questions

Madanswer
Jul 16 in Python
Jul 2 in Python
Jun 13, 2019 in Python
...