Python - Data Types - Binary Sequence Types (bytes, bytearray and memoryview) and NoneType

Published: 07 August 2023
on channel: Endezyaro
109
3

Python Tutorial for beginners 06
Python - Data Types - Binary Sequence Types (bytes, bytearray and memoryview) and NoneType
------------------------------------
Note: This part is for more advanced programmers

Bytes and bytearray are for manipulating binary data, memoryview uses the buffer protocol to access the memory of other binary objects without needing to make a copy.

What is/are byte(s) and what is/are byte(s) used for? Here is a short explanation about byte(s):
Computers can only store and work with bytes, it isn't Human-readable.
Bytes objects are immutable sequences of single bytes, a byte is a unit of digital information (data) that consists of 8 bits, each of which consists of a 0 or 1.
A byte use to encode/represent a single character such as the letter B, a comma, or a percentage sign, or it can represent a number from 0 to 255 (00000000 to 11111111) in a computer.

To store a picture file in computer, you must first encode it in bytes using e.g. jpg, jpeg, or png
To store music (audio) file in computer, you must first encode it in bytes using e.g. mp3
To store text file in computer, you must first encode it in bytes using e.g. ASCII or UTF-8
------------------------------------
I have used for the first videos the Linux command line, then i have use the PyCharm.
PyCharm is an integrated development environment (IDE) or development tool from JetBrains used for programming in Python.
PyCharm works on Windows, macOS or Linux.

Video I first started working with PyCharm is number 7,
Video number 7 is titled 'Python - Comparison Operators, Logical Operators, Membership Operators, Bitwise logical Operators'.

Enjoy learning Python :-)


On this page of the site you can watch the video online Python - Data Types - Binary Sequence Types (bytes, bytearray and memoryview) and NoneType with a duration of hours minute second in good quality, which was uploaded by the user Endezyaro 07 August 2023, share the link with friends and acquaintances, this video has already been watched 109 times on youtube and it was liked by 3 viewers. Enjoy your viewing!