from math import * N = 20 add = 1 e = 2 for n in range(2,N+1): add = add/n e = e + add print ('e: ', e)