def test ( ) : try : while 1 : x , digs = input ( 'Enter (x, digs): ' ) print x , fix ( x , digs ) , sci ( x , digs ) except ( EOFError , KeyboardInterrupt ) : pass
python user enters 10 intergers
Interactive test run .
def test():
    """Interactive test run."""
    try:
        while 1:
            x, digs = input('Enter (x, digs): ')
            print x, fix(x, digs), sci(x, digs)
    except (EOFError, KeyboardInterrupt):
        pass