#20 Simple Interest || Learn Python Foundation in Tamil

Python

Video is ready, Click Here to View ×


Next topic: #21 Compound Interest : https://www.youtube.com/watch?v=12TdKUbqWHA&list=PLmjuBlzAWCzy3DO_bSzaUcNLLgE-Xtnai&index=21
Previous topic: #19 Comments : https://www.youtube.com/watch?v=eXzggCWm4Ng&list=PLmjuBlzAWCzy3DO_bSzaUcNLLgE-Xtnai&index=19
Full YouTube Course link: https://cka.collectiva.in/t/python

This Video explains how to solve this problem in python.

Link for CKA App Download :
https://tinyurl.com/in-collectiva-ckaapp

Collectiva Knowledge Academy FaceBook Page Link …

9 thoughts on “#20 Simple Interest || Learn Python Foundation in Tamil

  1. Sir , if i give two input () . It doesn't wait for my second input. i am using pycharm. If i give single input it is working. I don't it was a coding issue. Can you please help me to fix it.
    my code is,

    # Accepting the input

    Pri = float(input("Enter the Princpal Amount: "))

    Num = float(input("Enter the No of years: "))

    Rate = float(input("Enter the Rate of Interest: "))

    # Calculate the Simple Interest

    SI = (Pri * Num * Rate) / float(100)

    # Output the calculated Simple Interest

    print("Simple Interest is:", SI)

    Error #:
    Enter the Princpal Amount:2300

    Enter the No of years: Traceback (most recent call last):

    File "G:/python projects/simple/simple programs/simpleinterest.py", line 4, in <module>

    Num = float(input("Enter the No of years: "))

    ValueError: could not convert string to float:

    Process finished with exit code 1

  2. Sir I'm getting error like::
    Can't multiply sequence by non-int of type 'str'

    I think, we will get the above error in Python 3 , if we execute the same SimpleInterest program. So it should be modified like as shown below, Is it correct?

    # 21.11.2018
    # Chapter 20 : Simple Interest program

    # Accepting the input
    Pri = float(input("Enter the Princpal Amount: "))
    Num = float(input("Enter the No of years: "))
    Rate = float(input("Enter the Rate of Interest: "))

    # Calculate the Simple Interest
    SI = (Pri * Num * Rate) / float(100)

    # Output the calculated Simple Interest
    print("Simple Interest is:", SI)
    print("Simple Interest is: {}".format(SI))
    print("Simple Interest is: {:.2f}".format(SI))

Leave a Reply

Your email address will not be published. Required fields are marked *