A bytearray in #Python takes the following optional arguments:
🐍 source[optional]: Initializes the array of bytes
🐍 encoding[optional]: Encoding of the string
🐍 errors[optional]: Takes action when encoding fails
It is often useful to see an unfamiliar concept in action. Here are two examples of creating a bytearray using different encodings and printing them out
You can loop over items in a bytearray and ask the bytearray what its size is as well using `len()`
If you'd like to learn more about the bytearray, you can check out the documentation here: