Author: Aditya Raj
- 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 […]
- 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, […]
- 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 […]
- 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 […]
- 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 […]
- 08 December
Python If with NOT Operator
In python, we use conditional statements to implement logic in our program. For this, we use boolean expressions with if statements. In this article, we will see how we can use the if statement with the not operator in our python program to implement logical decisions. NOT Operator and IF Statement in Python The syntax […]
- 01 December
Python If with And Operator
In python, we frequently used boolean expressions with conditional statements to implement business logic. In this article, we will discuss how we can use if statements with the AND operator to implement conditional logic in our program. The and Operator and if Statement in Python The syntax for the if statement is as follows. Here, […]
- 29 November
NoneType in Python
1. Introduction In python, we have different types of objects such as integers, strings, and floating-point numbers to represent data. In addition to these, we also have a NoneType object in python to represent the absence of data or to show that there is no data or object. In this article, we will discuss NoneType […]
- 17 November
Get class name in Python
While working with objects in python, several times we need to get their class name. In this article, we will discuss several ways to get the class name of an object in python. How to get the attributes of an object? An object in python has many attributes such as variables defined in its class […]