Annualised Return

Non-annual Compounding In general, with more than one compounding period in a year, we can express the formula for present value as follows: where m = number of compounding periods per year, RsR_s = quoted annual interest rate, and N = number of years. Annualising Returns A general equation to annualise returns is given, where…

A Basic Python main()

In some python scripts, you may see a function definition and a conditional statement that looks like the example below: In this code, there is a function called main() that prints the phrase “Hello World!” when the Python interpreter executes it. There is also a conditional (or if) statement that checks the value of __name__…