Here is some sample code showing how to use the `breakpoint()` function in your Python code
Here is a GIF that shows how to run the code. When a breakpoint is reached, the Python debugger (pdb) will launch automatically
If you'd like to learn more about debugging your #Python code with `breakpoint()` and the `pdb` module, you should check out my tutorial @mousevspython
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