bytes Objects: Overview
In this section, you’ll learn about bytes
objects. The bytes
object is one of the core built-in types for manipulating binary data. A bytes
object is an immutable sequence of single byte values. Each element in a bytes
object is a small integer in the range of 0 to 255. Here’s what you’ll see in this section:
- Defining a literal
bytes
object - Defining a
bytes
object with the built-inbytes()
function - Operations on
bytes
objects bytearray
objects- Conclusion and course review
00:00
Congratulations on your progress and welcome to Section 3, which is about bytes and bytes
objects. This video is a bytes
object overview.
00:12
The bytes
object is one of the core built-in types for manipulating binary data. A bytes
object is an immutable sequence of single byte values.
00:22
Each element in a bytes
object is a small integer in the range of 0
to 255
, a total of 256 possible values. In this section, after the overview, you’re going to talk about defining a literal bytes
object, and then defining a bytes
object using the built-in bytes()
function.
00:43
You’ll learn about operations that could be applied to bytes
objects. A lot of them are very similar to ones that you’ve applied to string objects.
00:51
And then, briefly, you’ll talk about bytearray
objects.
00:55 At the very end of this section, there’ll be a conclusion and an overall course review. All right, it’s time to dive in.
Become a Member to join the conversation.