I am begginer in python and this homework require me to get the future value of an investment.
p = raw_input("[How much did you invest?]:")
r = str(raw_input("[How much is the interest rate?]:"))
n = raw_input("[How long have you been investing?]:")
future_value = p*(1+1)**n
print "\n\n\tYour future value of your investment is: %s\n" % future_value
Error Code:
unsupported operand type(s) for ** or pow(): 'int' and 'str'
Any Help?