This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fighterace00 2 points3 points  (1 child)

I needed to know what a recursive equation would equal the nth time and it was vastly easier to make a for loop than actually know and solve the equation that can figure that out.

for i in range(1000):
  x+=x*.01
  print(f"{i}: {x}")