Advertisement
T-D-K

Untitled

Apr 26th, 2018
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. import math;
  2. n = int(input())
  3. s = 0
  4. for i in range(n):
  5.     s = s + 1 / math.factorial(i + 2);
  6. print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement