• Convert PDF to text in Python
    07 January

    Convert PDF to Text in Python

    Python is a feature-rich programming language. We can perform different operations on files in python using the different modules and libraries. In this article, we will discuss different ways to convert a pdf file to text in python. Convert pdf to text using pypdf2 To convert a pdf to text in python, we can use […]

  • Python append to array
    30 December

    How to Append to Array in Python

    In python, we have three implementations of the array data structure. In this article, we will discuss those array implementations. After that, see how we can append elements to the different array implementations in python.  What are the Different Array Implementations in Python? We can implement arrays using three different approaches namely lists, array module, […]

  • Copy file Python
    12 January

    How to Copy File in Python?

    Python provides us with many modules and functions to perform file operations. In this article, we will discuss different ways to copy file in python. For this, we will use the os module, shutil module, and subprocess module. We will also discuss advantages and disadvantages for each approach as file operations are costly in terms […]

  • Convert dict to String in Python
    17 December

    Convert dict to string in python

    In this post, we will see how to convert dict to String in Python. Python contains several data structures, and more often than not, there is a need for the conversion of one type to another. This tutorial focuses on and demonstrates the different ways available to convert a Dictionary object to a String in […]

  • Python range float
    17 December

    Generate float range in Python [9 ways]

    There are sometimes when you need to generate a range of floating-point numbers, for making various codes easier to implement and execute. Here, the focus is on generating a range of floating-point numbers. This tutorial demonstrates the several methods available to generate a range of float-point numbers. What is a floating-point number in Python? A […]

  • Python array size
    17 December

    Python array size: get size of array in Python

    In this article, we will see how to get size of array in Python. Python array size An array stores a collection of similar elements in a contiguous memory location. In Python, we have a list, an iterable, and a numpy array to work as arrays. We can perform various operations on arrays. The array […]

  • What is percent in python
    11 January

    What is % in Python?

    In this article, we will cover what is % in Python and what are different ways to use % in Python. In python, there are different types of operators with which we can perform different operations on any given data. In this article, we will discuss the % operator in python. We will also discuss […]

  • Python List of dictionaries
    09 December

    List of Dictionaries in Python

    We use both lists and dictionaries in our python programs. Lists are used to store atomic objects while dictionaries store key-value pairs. In this article, we will discuss how we can create a list of dictionaries in python. We will also discuss ways to search records in a list of dictionaries and also to sort […]

  • ValueError: too many values to unpack
    10 December

    [Fixed] ValueError: too many values to unpack (expected 2)

    While programming in python, we can assign values to two or more variables in a single statement. While doing so, you might get the ValueError exception with the message “ValueError: too many values to unpack ”. If you are trying to assign values to two variables at the same time, you will get the message […]