I have a function that can be simplified to:
def do_stuff(a,b,c):
a = a*2
b = b*3
c = c
return a, b, c
Given initial conditions: a = 2, b = 3, c = 1
I want to iterate the function until a is equal to 64
I am trying to use a while loop, something like
while True:
new_a, new_b, new_c = do_stuff(a, b, c)
... Here is where I am confused ...
if new_a = 64:
return False
How I declare the initial values of the function then make it use its own output as input on the next iteration.
Any help is appreciated!