• Iterate through files in directory in Python
    30 August

    Iterate through files in directory in python

    A directory, as its name implies, is a place where sub-directories are created and files are stored. A directory with no parent is referred to as the root directory which is usually the main directory. This tutorial demonstrates the different ways available to iterate through files in directory in Python. Python provides the os module […]

  • Initialize matrix Python
    21 August

    Initialize matrix in python

    A Matrix is a data structure, which is two-dimensional or more and stocks the numbers in a row and column format, much like a table. An in-built type for matrices is not available in Python but matrices can be created by making a list of lists and treating it as a matrix. This tutorial demonstrates […]

  • Convert list to matrix in Python
    21 August

    Convert list to matrix in Python

    Python provides some in-built data types to stock multiple items in a single variable. A List is one among these built-in data types. However, performing mathematical functions on lists is impossible due to which we need to convert the given lists to matrices or arrays in order to allow the successful performance of certain mathematical […]

  • Convert image to grayscale in Python
    21 August

    Convert image to grayscale in python

    A grayscale image is an image that simply contains only the shades of gray and no other color. The main advantage of using a grayscale image over a colored image is that it brings down the computational requirements, increases the speed of processing, and makes a significant impact on the complexity of the algorithm. This […]

  • Rotate image Python
    20 August

    Rotate image in Python

    Python supports the use of images and sometimes a given image needs to be rotated to a certain angle. The image in Python is rotated about the center and with a certain angle that is specified. Image Rotation is a geometric transformation, and this process can be carried out by Inverse or Forward Transformation. This […]