I created a function called calculuate_e which receives one parameter called precision that specifies the number of decimal points of accuracy.
Github link
Picture of the code running:
#WSQ14 Estimating e by Gilberto Rogel García is licensed under a Creative Commons Attribution 4.0 International License.