Advertisement
T-D-K

Untitled

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