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