A simple and efficient Python script to calculate the factorial of any given integer.
- Language: Python 3.x
- Libraries: Standard Library (No external dependencies required)
- 📥 User-Friendly Input: Prompts the user to enter a number directly from the console.
- ⚡ Fast Computation: Uses an optimized loop-based approach to calculate the factorial.
- 🛡️ Zero External Dependencies: Written in pure Python, making it lightweight and easy to run anywhere.
To run this project locally, follow these simple steps:
-
Prerequisites: Make sure you have Python installed on your system. You can check this by running:
python --version -
Clone or Download: Save the
Factorial.pyfile to your local machine. -
Run the Script: Open your terminal or command prompt, navigate to the directory containing the file, and execute:
python Factorial.py
Here is an example of how the program takes input and displays the result:
:5120