• 09 August

    Python | cv2 imwrite() Method

    In this tutorial, we will see how to save an image in your own system using python by using open-cv which exists as cv2 (computer vision) library. You can use imwrite() method of cv2 library to save an image on your system. To use cv2 library, you need to import cv2 library using import statement. […]

  • 25 June

    Convert Roman Number to Integer in Python

    In this post, we will see how to convert roman number to integer in python. How to Convert Roman Number to Integer in Python There are multiple ways in which numbers can be represented in the world of Python programming. Roman literals are one such approach to representing numbers in Python. Often times there is […]

  • 11 June

    Remove Single Quotes from String in Python

    Remove single quotes from string in Python. Strings in Python are usually enclosed within single or double quotes. A person may want to remove the unnecessary quotes that may occur in a string to represent and print the content in a more readable form. This tutorial focuses on the different ways in which we can […]

  • 11 June

    Escape Backslash Character in Python

    Escape backslash character in python. The backslash character holds a special place among all the other characters in the world of Python programming. It has multiple uses in Python, although all of them are quite similar to each other. This article demonstrates what is the backslash character and how it can be used in Python. […]

  • 11 June

    Break out of function in Python

    In this post, we will see how to break out of function in Python. Break out of function in Python A function is a block of reusable code that can be called whenever required in a program. In Python, we can create functions using the def keyword. A function can return some value. This value […]

  • 11 June

    Check if Object Is Iterable in Python

    In this post, we will see how to check if object is iterable in Python. What are iterables in Python? An iterable is an object that contains a sequence of elements that can be iterated over using a simple for loop. Lists, tuples, and strings are examples of such objects. Objects of such classes have […]

  • 11 June

    Save Numpy Array as Image in Python

    In this post, we will see how to save numpy array as image in Python. Save numpy array as image in Python Python provides a wide range of libraries that can be utilized to read and process images efficiently. Images are also processed efficiently while carrying out Computer Vision tasks. But how does Python store […]

  • 31 May

    Replace Tabs with Spaces in Python

    Tabs and Spaces in Python Tabs and spaces are required to add some gaps between characters. Space is fixed with single column width whereas a tab can have multiple column widths (usually two or four). In Python, we rely on indentation for defining blocks of codes so it is essential to know about spaces and […]

  • 30 May

    Count Down in a for Loop in Python

    How to count down in a for loop in Python? A loop is a basic tool of programming that allows us to execute some code till a given set of conditions returns True. The for loop is one such loop available in many programming languages. In Python, we can use the for loop to iterate […]

  • 25 May

    Count Decimal Places in Python

    How to count decimal places in Python? In Python, we can represent decimal values using the float datatype. The decimal point divides the integer from the fractional part. The maximum value a float object can have is 1.8 x 10^308. In this article, we will discuss how to count the decimal places in Python. We […]