### Instruction: how much more would rs . 10000 fetch , after two years , if it is put at 20 % p . a . compound interest payable half yearly than if is put at 20 % p . a . compound interest payable yearly ? Let's write a Python program to solve it.### Response: n0 = 10000.0
n1 = 20.0
n2 = 20.0
t0 = n1 / 100.0
t1 = t0 + 1.0
t2 = t0 / 2.0
t3 = t2 + 1.0
t4 = t1**min(2.0, 5)
t5 = n0 * t4
t6 = t3**min(4.0, 5)
t7 = n0 * t6
answer = t7 - t5
print(answer)