when programming, please use a decent spacing, else nobody will see an error when an obvious one exists. "pep8".
if i is a variable... ok, no problem we overwrite that −1−−−√, then please do not redefine it in a loop as a number. (This would have been a second alarm while reusing i...) Nobody does this, so this atypical error cannot be seen at a first glance. In our case, this brings the error as follows. After the last i-loop, this "global variable" has the value 2, and we try to solve a system of equations, where one of the equation variables is the constant 2. The error message is also misleading.
give a minimal code showing the error, only needed lines of code.
use list comprehension.
do not call a list means when it does not collect equations, but rather entries of a matrix. The solve of these "equations" will be hardly detected with bare eyes as an error.
try to give pointed prints. The show command delivers a mess, is not good control of the operations.
the two definitions of means and list are not needed. The wording for the list is also not proper. Something like X_entries would reflect the provenience, but we do not need this new variable, the matrix X already has the information.
Please understand that these "critics" are just kind advices, at any rate not offensive, in my case, knowing these as i started programming in python would have been a real benefit.
sage: V=var("v", n=9)
sage: P=matrix(V,nrows=3)
sage: X=matrix(SR,3,3,[[0,1,0],[0,0,1],[1,0,0]])
sage: Pdagger=P.transpose()
sage: Xdagger=X.transpose()
sage: Q=X*Pdagger
sage: B=Q.solve_left(X)
You need of any our Technical Support agent. Please call Technical Support team at +1 888 597 3962 our experts are available 24/7 by phone.
More Info - https://www.quickhelps.co/phone-number/sage/