python

python

Python program to remove commas from a string

Different ways to remove commas from a string in Python. Learn how to remove commas by using the replace method and by using a regular expression.

Read
python

Python string replace method explanation with example

Python string replace method is used to replace substrings in a string. This post will show you how to use string replace method with examples.

Read
python

3 ways to create a list of alternate elements in Python

Python program to create a list of alternate element from another list. We will learn three different ways to create the alternate element list.

Read
python

Python program to convert inch to centimeter

Python program to convert inch to centimeter. Take one user input and convert inch to centimeter in python.

Read
python

How to convert hours to seconds in Python

Learn how to convert hours to seconds in Python. It will take the hours value as input from the user and convert it to seconds.

Read
python

How to convert a date to ISO8601 format in python

Python program to convert a date to ISO8601 format. isoformat() method is provided to convert a datetime object to ISO8601 in android.

Read
python

Python program to find the nth number which is square and cube of another number

Python program to find the nth number which is square and also cube of another number. Print all numbers from 1 to n which are square and cube of another number.

Read
python

Python program to convert key-value string to dictionary

Python program to convert a key-value string to a dictionary. We will learn how to do that by using split and by using map in python.

Read
python

Python program to count total repeating digits in a number

Python program to count the total number of repeating digits in a given number. We will learn two different ways to solve this problem.

Read
python

Python program to count total digits in a string in four ways

Python program to count digits in a string. We will learn how to do that by using a loop, using sum(), using map() and using regular expression.

Read