def displayArray(name, a, width = 0):
    """
    Prints an array (any sequence of floats, really) to the screen.
    """
    print(name + ": ", end=" ")
    cnt = 0
    for i in a:
        print("%4.2f" % i, end=" ")
        if width > 0 and (cnt + 1) % width == 0:
            print('')
        cnt += 1
def displayArray ( name , a , width = 0 ) : print ( name + ": " , end = " " ) cnt = 0 for i in a : print ( "%4.2f" % i , end = " " ) if width > 0 and ( cnt + 1 ) % width == 0 : print ( '' ) cnt += 1
Prints an array (any sequence of floats, really) to the screen.