- Related Questions & Answers
- C Program for Tower of Hanoi
- C++ Program for Dijkstra’s shortest path algorithm?
- C/C++ Program for nth Catalan Number?
- C Program to Multiply two Floating Point Numbers?
- C program to find the length of a string?
- C Program to Check if all digits of a number divide it
- C Program to Check if a Given String is a Palindrome?
- Write a program to Delete a Tree in C programming
- Write a C program to print “ Tutorials Point ” without using a semicolon
- Sum of the nodes of a Singly Linked List in C Program
- Sum of first n natural numbers in C Program
- C Program for simple interest?
- Area of a n-sided regular polygon with given Radius in C Program?
- Area of a leaf inside a square in C Program?
- C Program for Area of a square inscribed in a circle which is inscribed in a hexagon?

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

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

Simple interest is calculated by multiplying the daily interest rate by the principal amount by the number of days that elapse between the payments.

**Mathematically,**

Simple Interest = (P x T x R)/100 Where, P is the principal amount T is the time and R is the rate

**For example,**

If P = 1000,R = 1,T = 2 Then SI=20.0 Now let’s see how we can implement a simple interest calculator in Python.

P = 1000 R = 1 T = 2 # simple interest SI = (P * R * T) / 100 print("simple interest is", SI)

simple interest is 20.0

Here the simple interest is obtained three arithmetic products and one arithmetic division.

Now let’s see the scope of the variables declared. As shown in the figure below all variables are declared in the **global scope**.

In this article, we learned about simple interest and it’s implementation using Python script.

Advertisements