human
I am working on the file "Alumnos/AleisterMontfort/Tarea1AleisterM+19_06_17.ipynb".
The first task is:
Ejercicio 1: Escribe los metodos repr y str para la clase Array de forma que se imprima legiblemente como en numpy arrays.
A. Primero hacemos un metodo para repr y str
Can you write Python code for it?
 ... Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.

class Array:
    "Una clase minima para algebra lineal"    
    def __init__(self, list_of_rows): 
        "Constructor"
        self.data = list_of_rows
        self.shape = (len(list_of_rows), len(list_of_rows[0]))      
    def __repr__(self):
        return "\n".join([str(x) for x in self.data])
    def __str__(self):
        for l in self.data:
            x= "\n".join([str(s) for s in self.data])
            for s in x:
                return x.replace(',','')    

A=Array([[1,2,3], [4,5,6], [4,5,9]])

A

print(A)

A.data