Universal Array Function In Python Definition