Viridien Interview Question

How to make python calculations?