Basic sympy problem in anaconda
-
02-11-2019 - |
Question
I have enabled sympy on Anaconda to use it to solve basic linear equations, but whenever I try to type something up it gives me an error when defining the variables:
from sympy import *
x,y=symbols(’x,y’);
solution=solve((4*x-3*y-17,7*x+5*y-11),x,y);
P=(solution[x],solution[y]);
print(P);
This code gives me this error message:
x,y=symbols(’x,y’);
^
SyntaxError: invalid character in identifier
Does anyone know how I could fix this?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with datascience.stackexchange