### Instruction: Due to 10% decrease in the price of sugar and John can buy 3kg more sugar in Rs100 , then find the CP of sugar?
Answer Choices: (A) s. 1 (2/9)  (B) s. 2 (2/9)  (C) s. 2 (1/9)  (D) s. 3 (19/27)  (E) s. 4 (2/9)  Please respond by writing a program in Python.### Response: # Let the original price per kg of sugar be x. Then, 100/x = quantity of sugar John could buy before the price decrease.
# After the price decrease, the price per kg of sugar becomes 0.9x. So, 100/0.9x = quantity of sugar John can buy after the price decrease.
# According to the problem, the difference between these two quantities is 3kg. So we have the equation 100/0.9x - 100/x = 3.
# Solving this equation for x gives us the original price per kg of sugar.
from sympy import symbols, solve
x = symbols('x')
x = solve(100/0.9/x - 100/x - 3, x)[0]
print(x)