how do i get it to work?
so waht im trying to do is create a code that takes user, initail investment value, intrest rate, how long the investment is active, and how long it needs to go, then it gives how much the investment is worth each month. but it isnt working, ive looked at a example that i was given of something like this and took some of its code, but it still isnt working
how do i do that? @CosmicBear
Don't say "it isn't working", tell what happened and what you wanted to happen.
You put everything in functions, but never ran the functions.
i want to know how to make it output a list of numbers, and these numbers are what number of month it is (for instance month 14) and i want it to say what the total investment is worth for that month (so month 14 is worth $1000) as for what happened when i ran the code, it said nothing, no errors occured, and it returned nothing @MrVoo
@SethElder1 Just get the inputs and run the functions.
what happened when i ran the code was nothing, i ran the code ans it said nothing, no errors occured, it didnt return anything, other than a black screen @MrVoo
how do i get it to do that? @CosmicBear
how do i do that? @CosmicBear
@SethElder1 Run the functions, all you have are functions. functionName()
@SethElder1 Maybe learn some python from a tutorial first. https://www.w3schools.com/python/python_functions.asp
I helped you with a couple bugs. Variables
m
andl
needed to be integers. Variabler
was clarified to be % anually. Theoutput
function needed to use the variablet
for each month to calculate properly.