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 eqns, 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 a good control of the operations.
the two definitions of eqns and xlist are not needed. The wording for xlist 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)
For any kind of technical help during the process contact Sage Technical Support team to get an instant solution. They are available 24/7. Call Now ?+44 203 880 7918 for any Support.
More Info - https://www.advisorexpert.co.uk/sage-support-phone-number/