• Write array to CSV in Python
    30 August

    Python write array to CSV

    A CSV file is a simple text file, with data separated by commas. It can represent tabular data and viewed as spreadsheets. An array is used to store a collection of elements under a single name. We use the numpy module to deal with arrays in Python. We will discuss different methods on how to […]

  • Multiply in Python
    30 August

    Multiply in Python

    Python allows us to perform various mathematical operations using different operators and functions. Multiplication is one of the four basic arithmetic operations. Multiply operator in Python To perform multiplication in Python, we use the * operator. For example, [crayon-61431b85b06f3880742462/] Output: 20 The final output is an integer as well. Similarly, we can multiply two float […]

  • Auto clicker in Python
    30 August

    How to make auto clicker in Python

    Python has inbuilt modules and methods which allow it to detect and perform keyboard and mouse inputs. We can create an auto-mouse clicker in Python. An auto-clicker is a simple Python script that clicks the mouse repeatedly several times, as specified by the user. We can control the speed, position, and how many times we […]

  • Write variable to file in Python
    30 August

    Write variable to file in python

    File handling is an important concept of programming. Python allows us to read and write content to an external file. In this article, we will discuss several ways to write variable to file in Python. First, let us discuss the basics of file handling and how to write data to a file since this will […]

  • Save image to file in Python
    21 August

    Save image to file in Python

    Images are an integral part of Python programming. Python allows us to read and process images efficiently using different modules. We will discuss how to save image to file in Python using different ways. Using the PIL module to save image to file in Python The PIL module is used for storing, processing, and displaying […]

  • Epoch to datetime in Python
    21 August

    Convert epoch to datetime in python

    Epoch time refers to the time elapsed since time was started measuring on January 1, 1970. Usually, it is measured in seconds. It is also known as UNIX time. In this article, we will convert this epoch time to datetime object in Python. First, let us understand what this datetime is. Python offers a module […]

  • Create matrix in Python
    18 August

    Create matrix in Python

    In the world of programming, matrices are represented as 2-D arrays used for data representation in rows and columns. These are used in various mathematical and statistical operations and they retain their shape. A matrix with an equal number of rows and columns is called a square matrix. To create matrix in Python, we can […]