문제 풀이
(1) 4 = k - 2
k = 4 + 2 = 6
In [5]:
from sympy import Symbol, solve k = Symbol('k') equation = k - 2 - 4 solve(equation)
[6]
(2) 10 = 2k
k = = 5
In [6]:
from sympy import Symbol, solve k = Symbol('k') equation = 2 * k - 10 solve(equation)
[5]
(3) = 8
k = 2 × 8 = 16
In [7]:
from sympy import Symbol, solve k = Symbol('k') equation = k / 2 - 8 solve(equation)
[16]