Jefferies interview question

Random python and fixed income questions