• Print blank line in Python
    23 September

    Print blank line in Python

    The print() function can display some message or output in Python. Sometimes, the final result can be congested and unclear due to a need to display multiple or long outputs. What is a blank line in Python? We can use a blank line to display the final output in a clean, understandable way. A blank […]

  • 17 September

    Write list to CSV in Python

    A CSV file is a text file used to store data in tabular format and is compatible with Excel. It is used to store multiple values separated by a comma. If you want write list to any file, you can refer write list to file in Python. In this article, we will write a list […]

  • Write array to CSV in Python
    30 August

    Python 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-62fbfa4563cf4093264902/] 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 […]

  • Python float array to int
    11 November

    Convert float array to int array in Python

    What are the types of arrays? An array is a common structure that stores multiple items of a similar type together in a single place in a contiguous memory location. We can create arrays of any one of the data types provided in Python. Ways to convert float arrays to int in Python In Python, […]

  • 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 […]