Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math;
- n = int(input())
- s = 0
- for i in range(n):
- s = s + 1 / math.factorial(i + 2);
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement