FinalModel.py
def gen_function(b = [0]):
    """setting condition of generating frames during animation 

    The animation keeps running until a<10        
    """
    a = 0
    global carry_on #Not actually needed as we're not assigning, but clearer
    while (a < 10) & (carry_on == True) :
        yield a	# Returns control and waits next call.
        a = a + 1
setting condition of generating frames during animation 

    The animation keeps running until a<10        
    
setting condition of generating frames during animation
The animation keeps running until a<10
setting condition of generating frames during animation The animation keeps running until a<10
def gen_function(b = [0]):
    a = 0
    global carry_on 
    while (a < 10) & (carry_on == True) :
        yield a	
        a = a + 1
def gen_function ( b = [ 0 ] ) : a = 0 global carry_on while ( a < 10 ) & ( carry_on == True ) : yield a a = a + 1
setting condition of generating frames during animation
The animation keeps running until a<10
setting condition of generating frames during animation The animation keeps running until a<10
"""setting condition of generating frames during animation 

    The animation keeps running until a<10        
    """ #Not actually needed as we're not assigning, but clearer # Returns control and waits next call.
b