python

python

Python program to convert string to date using datetime module

Learn how we can use datetime module in python to convert a string to date. We will also learn how to parse date to different local using datetime strptime function.

Read
python

Three different Python examples to remove items from a list while iterating

Learn how to remove list items from a python list while iterating.We will learn three different ways to remove list items from a list. We will use one loop, by making copy of the list and by using filter.

Read
python

Python program to read and write JSON from a file

This tutorial will show you how to read write JSON from a file in python. Python provides json module to deal with all operations linked to JSON. We can use this module to read and write data from and to a JSON file.

Read
python

Python program to convert one string to JSON

Python program to convert one string to JSON. Python provides json module to deal with JSON data. It's load() method can be used to convert one string to JSON.

Read
python

Linear search implementation in python

Learn to implement linear search program in python. Linear search is a search algorithm that searches for an item linearly. This python program will search in an array using linear search.

Read
python

3 different ways in Python to convert string to a tuple of integers

In this post, we will learn three different ways in python to convert string to a tuple of integers. We will use tuple constructor, splitting and using eval.

Read
python

Python example to zip list of lists using zip method

Example of python zip method to zip list of lists. We can pass iterables to this method and it will retun one iterator of tuples.

Read
python

How to find if a string is a valid URL or not in Python

Python program to check if a string is valid URL or not. We will use validator module to solve this problem.

Read
python

How to check if a email address is valid or not in Python

Python program for email address validation. We will learn how to solve this by using regex and by usgin validators module.

Read
python

Python program to find the sum of digits in a string

Learn how to find the sum of digits in a string in python. We will learn how to solve this by using a for loop and using only one line.

Read