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