# Category: Python Programming Examples

python tutorials and learn python

### 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 to check Armstrong Number

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…

### Python Program for compound interest

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…

### Python Program for simple interest

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…

### Python Program for factorial of a number

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

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,…