0

Hello,

I am new to python.

I am trying to run this python program using xampp.

first.py

print('Interest Calculator:')
amount = float(input('Principal amount ?'))
roi = float(input('Rate of Interest ?'))
years = int(input('Duration (no. of years) ?'))
total = (amount * pow(1 + (roi/100), years))
interest = total - amount
print('\nInterest = %0.2f' %interest)

I wonder why it showing me the whole text ? Looks like I am missing something.

2
Contributors
1
Reply
10
Views
4 Months
Discussion Span
Last Post by Reverend Jim
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.