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

# Category: Python

## 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

In this program, you’ll learn to calculate the area of a triangle and display it. If a, b and c are three sides of a […]

## 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: […]

## Python Program to Print Hello world!

A simple program that displays “Hello, World!”. It’s often used to illustrate the syntax of the language. Source Code Output […]

## Python Program to Add Two Numbers

Output Enter first number: 1.5 Enter second number: 6.3 The sum of 1.5 and 6.3 is 7.8