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.
- 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
Run the script in the terminal:
python pi_generator.py