A flask introduction app that calculates compound interest.
Before you start:
- Get Python 3.7.0 installed (pyenv makes it easy)
- Get PyCharm installed
- Install
flask
(look up how to usePipenv
)
FYI -- HTML templates are using Bootstrap to make elements look nice.
Objectives
-
Build a compound interest calculator. Figure out how to:
- Read input from
form.html
into flask route. - Write a function to calculate compound interest.
- Display the result on the form page.
- Read input from
I have created the form page, follow the web address printed to the terminal when you run the app.
Run the Flask app:
python app.py
Useful links
http://flask.pocoo.org/docs/latest/
https://www.thecalculatorsite.com/articles/finance/compound-interest-formula.php
Solution is on the solution branch