featured Image

Replace character in String by index in Python

In this article, we will see how we can replace a character at a certain index in a string in python with some examples. To replace any character at a…

Read more
featured Image

Get the Index or Position of Item in List in Python

To find the index of an element from List in python, we can use the index() method and pass the element as an argument. It returns the index of the…

Read more
featured Image

Python – Check if a string is Empty or Not

In this post, we will see different ways to check if a string is empty or not in Python. In python, strings are immutable, which means we cannot make any…

Read more
featured Image

Remove Duplicates from List in Python

In this article, we will discuss different ways to remove duplicate items from a Python List with some examples. What is Python List? A list is one of the built-in…

Read more
featured Image

Convert HTMLCollection into array in JavaScript

In this post, we will see how to convert HTMLCollection into an array in JavaScript. The HTMLCollection is a array-like collections (list) of HTML elements (nodes) extracted from a document….

Read more
featured Image

Remove the Last N element from a List in Python

In this post, we will learn about different ways to remove last n element from a list in python. In python, a list is a data type in which we…

Read more
featured Image

How to take input as int (integer) in python?

In this short article, we will learn how to make the input function accept only integers as input values in python. The input() function in python is used to take…

Read more
featured Image

Check if user input is empty in python

In this article, we will learn to detect if the user input is empty or not in python. In Python, we can take user input using the input function. The…

Read more
featured Image

How to check if input is a number in python

In this article, we will discuss if the user input data is a numeric value or not in python. The input function in python is used to take user input….

Read more