Skip to main content

--description--

This video will go deeper, with more examples of how to use SymPy solve. It will also explain how the practice functions generate the random problems.

Here is the Colab notebook to go along with this video. Use it to add more to the algebra Colab notebook that you are building.

--assignment--

Add the code for more ways to solve for x from the video to your algebra Colab notebook.


Open the following Colab notebook, run the cell, and practice solving one and two-step algebra problems. As a bonus, look at the code that generates the practice problems.

--question--

--text--

If you import sympy and define x as a variable, what would be the output from the following code?

example = 3*x - 12
equation = Eq(example,0)
solution = solve(equation,x)
print(solution)

--answers--

3


4


[4]


x = 4

--video-solution--

3