Library

All tutorials

Every Liberian Geek guide, newest first. Browse by topic from the menu, or search for the task you need.

1,384 guides · page 41

How to Create Multiline Comments in Python

Comments are used for documentation purposes, but they are overlooked by the compiler during the execution of code. Adding comments is like writing notes in your code. It helps you understand your code better, makes it easier for others to read, and lets your team...

How to Convert Strings to Bytes in Python 3

We know that the strings are human-readable data types i.e. these data types can easily be understood by humans but these can not be understood by the computer. The machine first converts them into byte objects to store them on the disk. This encoding may be of many...

How to Install OpenCV using Pip in Python

OpenCV (Open Source Computer Vision) is a cross-platform Python library commonly used in computer vision tasks such as Deep Learning, Image processing, Augmented Reality, and Object Detection. It does not come pre-installed with Python, so you need to install it...

How to Manually Raise Exceptions in Python

Python is a multi-purpose object-oriented programming language that comes with numerous built-in exceptions such as ImportError, OSError, etc. Using Exceptions, programmers can handle mistakes and unpredicted circumstances in their code. A Python program raises an...

How to Round Numbers to 2 Decimals in Python

Floating point numbers can be unnecessarily long sometimes. In such a case, we need to round down the number to some specified decimal numbers. Several built-in functions are offered/supported by Python that can be utilized for different purposes. In this post, we...