## Remove elements from a list present in another list Python

In this article, we are going to learn logic about how to remove elements from a list present in another list in Python. This will give us two lists with unique elements. We can use the same logic to remove elements from the list python. Also if you need programs in the to python list …

## Check if Element Exists in C++ Vector

In this article, we will learn how to search for an element in a vector and Check if an Element Exists in C++ Vector with examples using 3 ways By using the STL std::find() Algorithm.. By using Range-Based for Loop. By using STL any_of() Algorithm. 1. std::find() to Check if Element Exists in C++ Vector …

## Extract a SubVector From a Vector in C++

In this article, we are going to learn how to extract a Sub Vector from a vector. Or you can say slice a vector from another vector. Ways to Extract a SubVector From a Vector in C++ Using vector {} List Initialization to Extract a Sub vector From a Vector. Using the copy() Function to …

## Convert datetime to date in Python

In this article, we are going to learn how to convert Datetime to date in Python. We will make use of the datetime module of Python to get the current date and time. Once we have the current datetime it then we will convert it to date. Environment and requirements- Python interpreter datetime library Python …

## How to check Leap Year in Python

In this article, we are going to learn How to check Leap Year in Python if a given year is Leap Year or not in Python. We will ask the user to enter the year and then we will check this input year value. If this is a leap year or not we will print …

## Get Time zones List Python(3 ways)

In this article, we are going to learn about time zones. We will learn how we can Get Time zones List Python by providingthe country name. The Pytz module is a module that provides date-time conversion functions to help users serve international customers and supports almost all time zones. It allows us to calculate time …

## Drag and drop elements in selenium Python

In this article, we are going to learn how to Drag and drop elements in selenium Python. We will perform the drag and drop of a draggable element. We will make use of the Actionchains function from the selenium.webdriver module. We will use a website that will provide us with the droppable element and area …

## Clear input field in selenium Python

In this article we are going to learn how to clear the input field in Python selenium. In this code example, we will see an example of the www.google.com search input field. We will clear it with the help of selenium script. Environments and requirements: To run this script on your machine, you will need …

## Convert date to datetime in Python

In this article, we are going to learn how we can convert date object to datetime. We will make use of the datetime module of Python to get the current date and time. Once we have current datetime then we will convert it to date. Environment and requirements-Python interpreterdatetime library Program for date to datetime …

## Calculate Time Difference Between Time Strings

In this article, we are going to learn how to calculate the time difference or time gap between 2 given times. We will ask user to enter the time 1 and time 2 for which we want to calculate the time difference. Then we will substract time 1 from time 2 so we can get …