Using Strings With ByteArray in Python

In this article, let us see how to effectively work with strings while using the Bytearray data structure in Python. A Quick Refresher on Bytearray ByteArray is a data structure in Python that can be used when we wish to store a collection of bytes in an ordered manner in a contiguous area of memory. … Read more

Python Raising Error With a Custom Message

In this article, we’ll see how to raise an error with a custom message in Python. We’ll learn how to use the ‘raise’ statement and we’ll practice all of this with the help of examples. Raising Exception The ‘raise’ statement allows you to throw/raise any error manually.  For example: Raising Exception with Custom Message We … Read more