This website requires JavaScript.
Explore
Help
Sign In
zhangyiss
/
python-by-example-150-challenges
Watch
1
Star
0
Fork
0
You've already forked python-by-example-150-challenges
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
88c8f2ca32
python-by-example-150-chall...
/
challenges27-34
/
challenge-030.py
4 lines
86 B
Python
Raw
Normal View
History
Unescape
Escape
first group of challenges
2019-07-17 14:56:46 +08:00
import
math
update
2025-05-26 06:49:34 +08:00
dig
=
int
(
input
(
"
how many digits you want:
"
)
)
print
(
round
(
math
.
pi
,
dig
)
)
Reference in New Issue
Copy Permalink