With my basic interest calculator I keep getting the error
r = int(raw_input("What is the rate of growth?\n=> "))
ValueError: invalid literal for int() with base 10: '.52'
the numbers I am using are principal of 20,000 Rate of 52% (.052 is what I put in) compoundings are Semiannually with 3 periods
import math
p = int(raw_input("what is the principal value?\n=> "))
r = int(raw_input("What is the rate of growth?\n=> "))
c = int(raw_input("How many compoundings per periods are taking place?
\n=> "))
t = int(raw_input("How mant periods are taking place?\n=> "))
number = str(p*(1+r/c)**c*t)
print(number)
edit: sorry for crappy variables it is what is on my homework ;)