Skip to content

๐Ÿ”ข Python program to generate the digits of Pi to a specified number of decimal places using a chosen algorithm.

Notifications You must be signed in to change notification settings

moroniq/pi-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Pi & e Generator ๐Ÿงฎ๐Ÿ“ˆ

A simple Python script that prints the value of ฯ€ (pi) or e (Euler's number) to a user-specified number of decimal places (up to 100).
Great for learning basic Python, input handling, branching logic, and error checking.


๐Ÿ“Œ Features

  • Prompts the user to choose between ฯ€ or e
  • Allows selection of precision (0โ€“100 decimal places)
  • Handles invalid inputs gracefully (e.g. non-numeric or out-of-range)
  • Lightweight, beginner-friendly code

๐Ÿš€ Usage

Run the script in the terminal:

python pi_generator.py

About

๐Ÿ”ข Python program to generate the digits of Pi to a specified number of decimal places using a chosen algorithm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published