I ran this code.Then it displayed the follwing in the console.
Traceback (most recent call last): File "", line 13, in NameError: name 'r' is not defined
import mathp = int(raw_input("Please enter deposit amount: \n"))
i = int(raw_input("Please input interest rate: \n"))
t = int(raw_input("Please insert number of years of the invesment: \n"))
interest = raw_input("Do you want a simple or compound interest ? \n")A = p(1+r*t)
B = p(1+r)^tif interest == "simple":print int(float(A))
elif interest == "compound":print int(float(B))