How do I prevent python from freezing to work on a large number equation?
Question: Because it takes too much time to calculate for A, I'll want the calculation
to stop and have the program continue on to calculate for B. It would also be
helpful to know what error this is called.

    
    
    A = 999999999999999999**999999999999999999
    
    B = 9**9
    

The program still freezes when using threading.Timer()

    
    
    import threading
    import time
    
    a = 1
    
    def zzz():
        global a
        print('restarting')
        a = 0
        threading.Timer(1.0,zzz).start()
        a = 1
    
    
    threading.Timer(1.0, zzz).start()
    
    
    
    while 1:
        while a == 1:
            h = 999999999999999**999999999999999
    


Answer: I believe the problem has been solved: adding ".0" at the end of one number
will allow python to recognize that 99999999999999.0**99999999999999 is too
large of a result and will output an error that can be ignored with try/except

