## Example of Python casefold method

Python casefold method example : casefold() method is used to convert all characters in a string to lowercase. It doesn’t take any parameter. You can directly call this method to a string. It returns the new lowercase character string. casefold() method is useful can be used to compare two strings Read more…

## Trigonometric functions in python

Introduction : Finding out the trigonometric value like sine, cosine or tangent will be hard if we don’t use any package or library. Almost every programming language provides trigonometric functions. For python, these are defined in the math module. math module in Python provides different types of mathematical functions defined Read more…

## Enumeration in python with examples

Enumeration in python : Using enumeration can improve the readability of your code. Enumeration is a set of key-value pairs with each key is a symbolic name bound to its value. You can use the symbolic name in your code using enumeration to make it more readable. Python provides one Read more…

## Python degree and radian conversion

Degree and radian in python : math module in python provides two different methods for a degree to radian and radian to degree conversion. Degree and radian are used for angle measurement and conversion of one to another are frequently used in applications like weather apps. You can write your Read more…

## Python math.hypot method explanation with example

math.hypot() method in Python : Defined in the math library, hypot() method is used to find the value of euclidean norm. For two numbers x and y, the euclidean norm is the length of the vector from origin (0,0) to the coordinate (x,y). For a point (x,y), it is equal Read more…

## Python program to convert meter to yard

meter-yard conversion in Python : This tutorial will show you how to convert a distance of meter to yard. If you are getting the value in one unit, you need to convert it to a different unit if your program is working on a separate unit. This is a commonly Read more…

## Python program to remove one occurrence of a word in a list

Python program to remove the kth occurrence of a word in list : In this tutorial, we will learn how to remove the kth occurrence of a word in a given list. The list is given. It contains words and most words are repeated. We will create one function to Read more…

## Python program to find the area and perimeter of a triangle

Find the area and perimeter of a triangle in Python : In this tutorial, I will show you how to find the area and perimeter of a triangle in Python. For calculating both area and perimeter, we need the values of the sides of the triangle. So, the program will Read more…

## Sort a python dictionary by values

Dictionary sorting in Python : Dictionary is used to store key-value pairs. We can sort the items in a dictionary based on the values. In this tutorial, I will show you how to sort a python dictionary based on its values.   Using sorted with operator module : We can Read more…

## Python program to find the cube sum of first n numbers

Introduction : This program will show you how to get the cube sum of first n natural numbers in python. The program will take the value of n as an input from the user, calculate the sum of cube and print it out. We will solve this problem by using Read more…