Created
June 18, 2021 19:13
-
-
Save sithu/876946ef5d20f8eaed14014e52c45b28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
size = 5 | |
# ( 1 + (1/1!) + (1/2!) + (1/3!) + (1/4!) + (1/5!) + ......... + 1/i! ) | |
_list = [(1 / math.factorial(i)) for i in range(size)] | |
e = sum(_list) | |
print(f"e={e}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment