Pregunta de entrevista de Duality Group

How to do some simple financial computations in python.