How do I get for loop to print the equation for each value
Question:
Answers:
Replace t
with seconds
in your calculation of d.
As it is, you are calculating d
t-times with t**2. As far as I understand, you want to calculate it t-times but print the distance after every second. So t has to be replaced with the variable you called seconds
And then either print in your function fallingDistance
. Or call your function t-times and print the result in your main()
Replace t
with seconds
in your calculation of d.
As it is, you are calculating d
t-times with t**2. As far as I understand, you want to calculate it t-times but print the distance after every second. So t has to be replaced with the variable you called seconds
And then either print in your function fallingDistance
. Or call your function t-times and print the result in your main()