python

python

How to do floor division in python

Floor division returns the largest number which is less than or equal to the division result. This post will show you how to use floor division in python.

Read
python

Python program to append/add or update key/value pairs in a dictionary

Python program to append/add or update key-value pairs in a dictionary. Check these five different examples.

Read
python

Python program to append a string to a list

Python program to append a string to a list in two different ways. We will use + operator and append() method in this post.

Read
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