by Suf | Jan 4, 2022 | Programming, Python, Tips
None and iterables are distinct types of objects in Python. None is the return value of a function that does not return anything, and we can use None to represent the absence of a value. An iterable is an object capable of returning elements one at a time, for...
by Suf | Jan 4, 2022 | Programming, Python, Tips
A common error you may encounter when using Python is modulenotfounderror: no module named ‘cv2’. This error occurs when Python cannot detect the OpenCV library in your current environment. You can install OpenCV using pip as follows: python3 -m pip...
by Suf | Jan 3, 2022 | Programming, Python, Tips
A common error you may encounter when using Python is modulenotfounderror: no module named ‘numpy’. This error occurs when Python cannot detect the NumPy library in your current environment. This tutorial goes through the exact steps to troubleshoot this...
by Suf | Jan 2, 2022 | Programming, Python, Tips
Python provides support for arithmetic operations between numerical values with arithmetic operators. Suppose we try to perform certain operations between a string and an integer value, for example, concatenation +. In that case, we will raise the error:...
by Suf | Dec 31, 2021 | Programming, Python, Tips
The built-in data type List stores multiple items in a single variable. You can create lists using square brackets []. If you have two lists and you want to concatenate them, there are several methods you can use to do so. This tutorial will go through six of the...
by Suf | Dec 30, 2021 | NLP, Programming, Python, Tips
In Python, we can use built-in functions to manipulate strings. For example, we may want to capitalize the first characters in a name for form entry. The upper() function is helpful for converting all case-based characters in a string to uppercase. We can use the...