• CharAt in Python
    08 January

    CharAt in Python

    In this tutorial, we will see about CharAt in Python. If you are already well verse in java and might be looking for charAt() alternative in Python, then you are at right place. In Python, you can get character of String similar to the way you access array elements in java. Here is simple code […]

  • 07 January

    How to compare lists in Python

    In this post, we will see how to compare lists in Python. Python compare lists Lists in Python are mutable and can store a finite number of elements. We cannot determine whether a list is greater or less than any other list based on general criteria. So when we talk about comparing lists, we mean […]

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

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

  • Python callback function
    13 December

    Callback function in Python

    In python, functions are first-class objects. In other words, we can pass a function to a different function as an input argument. We can return a function from another function, and we can assign a function to a variable. In this article, we will see what is a callback function in python and how we […]

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