### Python Program for Program to find area of a circle

Python Program for Program to find area of a circle Area of a circle can simply be evaluated using following formula.

Python Program for Program to find area of a circle Area of a circle can simply be evaluated using following formula.

Python Program to check Armstrong Number Given a number x, determine whether the given number is Armstrong number or not. A positive integer of n digits is called an Armstrong number of order n (order is number of digits) if. abcd… = pow(a,n) + pow(b,n) + pow(c,n) + pow(d,n) + …. Example: Input : 153…

Read more

Python Program for compound interest Compound Interest formula: Formula to calculate compound interest annually is given by: Compound Interest = P(1 + R/100)r Where, P is principle amount R is the rate and T is the time span Example: Input : Principle (amount): 1200 Time: 2 Rate: 5.4 Output : Compound Interest = 1333.099243…

Read more

Python Program for simple interest Simple interest formula is given by: Simple Interest = (P x T x R)/100 Where, P is the principle amount T is the time and R is the rate Examples: EXAMPLE1: Input : P = 10000 R = 5 T = 5 Output :2500 We need to find simple interest…

Read more

Python Program for factorial of a number Factorial of a non-negative integer is multiplication of all integers smaller than or equal to n. For example factorial of 6 is 6*5*4*3*2*1 which is 720.

Python program to add two numbers Given two numbers num1 and num2. The task is to write a Python program to find the addition of these two numbers. Examples: Input: num1 = 5, num2 = 3 Output: 8 Input: num1 = 13, num2 = 6 Output: 19 In the below program to add two numbers,…

Read more

Python Programming Examples Following Python section contains a wide collection of Python programming examples. The examples are categorized based on the topics including List, strings, dictionary, tuple, sets and many more. Each program example contains multiple approaches to solve the problem. Topics : Basic Programs Array Programs List Programs String Programs Dictionary Programs Tuple Programs…

Read more

Python Program to Add Two Numbers In this program, you will learn to add two numbers and display it using print() function. In the program below, we’ve used the arithmetic addition operator (+) to add two numbers. Source Code # This program adds two numbers num1 = 1.5 num2 = 6.3 # Add two numbers…

Read more