I am following the steps:
1. import sympy as sy
2. x = sy.symbols('x', real=True)
Now, print(sy.solve(2*x + 1 < 5,x)) or (-3 < 2*x+1, x) giving me the appropriate answer. But when i try to run, print(sy.solve(-3 < 2x+1 <5, x)), it is giving me the error raise TypeError("cannot determine truth value of Relational")
TypeError: cannot determine truth value of Relational
.
I am very new to sympy and i am struggling from this for last two days. if anyone have idea please share it. Thank you in advance. i want that single value from result as well.