Python3 calculation constant e

From , 3 Years ago, written in Python, viewed 89 times.
URL https://pastebin.vip/view/e38e37a9
  1. import math  
  2. def e(accuracy):  
  3.     return sum(1.0/math.factorial(i) for i in range(accuracy))  
  4.  
  5. if __name__ == "__main__":  
  6.     print(e(10))  

Reply to "Python3 calculation constant e"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website