What is the difference between bytes and bytearray in Python?
Correct answer
A. bytes is immutable; bytearray is mutable
6 views
A. bytes is immutable; bytearray is mutable
6 views
bytearray supports in-place modification.
Asked in: Python Interview Standard Library
https://docs.python.org/3/library/index.htmlNot sure why the answer is A? Ask here and get an explanation.