Can we solve linear equation in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we solve linear equation in python?

For example, 4x + 5 -9 = 12y +3 -8. Only with x I can do it, but with 2 arguments i have problem

6th Jan 2019, 8:06 AM
Max Zalubovskij
Max Zalubovskij - avatar
2 Answers
+ 3
You can't solve this. To solve equation with two variables you have to have two equations ex. x + 8 = y and y = 2 * x.
6th Jan 2019, 9:08 AM
Maneren
Maneren - avatar
+ 2
Then you just use some formulas
6th Jan 2019, 9:08 AM
Maneren
Maneren - avatar