Advertisement
ikizid

Limes neper

Jun 18th, 2025 (edited)
357
0
29 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | Software | 0 0
  1. def potence(luku, pot):
  2.     i = tulos = 1
  3.     while True:
  4.         tulos *= luku
  5.         i += 1
  6.         if i > pot:
  7.             break
  8.     return tulos
  9.  
  10. if __name__ == "__main__":    
  11.     n = 10000
  12.     lauseke = 1 + 1 / n
  13.     lauseke = potence(lauseke, n)
  14.     mjono = bytearray(200)
  15.     mjono = str(lauseke)
  16.     print(mjono)
Tags: neper
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement