multiplication table of N

In the program below, we have used the FOR loop to display the multiplication table of 12. Source Code Output

Simple Interest in Python

In this article, we will learn about the calculation of simple interest in Python 3.x. Or earlier. Simple interest is

Python Program to Convert Kilometers to Miles

In this example, we’ll learn to convert kilometers to miles and display it. Example: Kilometers to Miles Output Enter value

Python Program to Generate a Random Number

In this example, you will learn to generate a random number in Python. Source Code Output 5 Note that we

Python Program to Swap Two Variables

In this example, you will learn to swap two variables by using a temporary variable and, without using temporary variable.

Python Program to Solve Quadratic Equation

This program computes roots of a quadratic equation when coefficients a, b and c are known. The standard form of

Python Program to Calculate the Area of a Triangle

If a, b and c are three sides of a triangle. Then, s = (a+b+c)/2 area = √(s(s-a)*(s-b)*(s-c)) Source Code Output The area of the

Python Program to Find the Square Root

In this program, you’ll learn to find the square root of a number using exponent operator and cmath module. Example: