Hi guys, my code should do this:
I have an account of 10000$ and every month I take interest of 0.5% and also I substract 500$ every month
I need for my program to stop when the account reaches 0.
And also all the years until depletion to be listed.
PS: I am a total beginner:)
Please se my code below which is not displaying an output.Please advise.
I have an account of 10000$ and every month I take interest of 0.5% and also I substract 500$ every month
I need for my program to stop when the account reaches 0.
And also all the years until depletion to be listed.
PS: I am a total beginner:)
Please se my code below which is not displaying an output.Please advise.
account = 10000 month = account/0.5-500 year = 12*month for i in range(account): if account == account/0.5-500: if account == 0: break else: print(year)