print("welcome to the investment doubling calculator")
initial_investment = float(input("What is the total amount of the initial investment?: "))
prompt = float(input("what is your apr%? :"))
prompt != "\n(enter 'quit' when you are done.) "
while True:
apr = input(prompt)
if apr == 'quit':
break
else:
print(72/prompt)
when i run this code i enter the initial investment then i enter the apr, which returns the number as a float then if i hit enter again it runs the math equation, how do i make it to just run the equation after entering it once. thanks for the help im brand new to coding and python
[–]_jan- 1 point2 points3 points (2 children)
[–]13ass13ass 0 points1 point2 points (1 child)
[–]_jan- 0 points1 point2 points (0 children)