python

python

How to create a color choosing dialog in tkinter python

Python tkinter example to create a color choosing dialog. We can use tkinter.colorchooser module to create a color chooser dialog.

Read
python

Python program to check if two sets are equal

Python program to check if two sets are equal or not. set is used to store collection of data and it doesn't allow any duplicate elements.

Read
python

How to write a simple stopwatch in python

Python program to write a stopwatch. This stopwatch will record the time and once stopped, it prints the time spent.

Read
python

How to insert an item to the start of an Ordered dictionary in Python

Python program to insert items to the start of an ordered dictionary. Ordered dictionary remembers the key-value pairs inserted.

Read
python

Python program to search for a text in a file

Python program to search for specific text in a text file. It will read the text from the user and search for that text in a given file.

Read
python

Python program to find the volume of a tetrahedron

Learn how to find the volume of a tetrahedron in Python using user inputs. Tetrahedron is a triangular pyramid and this program will show you how to find the volume in python.

Read
python

How to calculate gross pay for hourly paid employees in Python

Learn how to calculate gross pay for hourly paid employees in python. Hourly paid employees are paid hourly and payment is calculated based on the number of hours worked.

Read
python

Python program to check if a subarray is in an array

Python program to check if a subarray is in an array or not. One subarray and one array is given. Find out if the subarray is in that array or not.

Read
python

4 ways to reverse a string in python

4 different ways to reverse a string in python. using a for or while loop, recursively, by using the reversed method and by using slicing.

Read
python

How to take integer inputs until a valid response is found in python

In this post, we will learn how to get integer inputs continuously until a valid response is found in Python.

Read