def pro_scal(U,V): p=0 for i in range(3): p=p+... return p