Geocrack

pi2

Jun 29th, 2022 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. from mpmath import mp
  2.  
  3.  
  4. eingabe = int(input("Welche Stelle von pi wollen Sie berechnen? : "))
  5. mp.dps =  eingabe + 2
  6.  
  7. print(f"Die {eingabe}te Stelle von Pi ist {str(mp.pi)[-2]}")
  8. print(mp.pi)
  9.  
Advertisement
Add Comment
Please, Sign In to add comment