A simple Python project to display a random quote from a pre-defined list each time it runs. This is a fun and easy project for beginners to practice using lists and the random
module in Python!
The Random Quote Generator is a quick, beginner-friendly Python project that outputs a random inspirational quote each time it’s executed. This project utilizes Python’s built-in random
module to select a quote at random from a predefined list.
- Generates a random quote on each run.
- Simple, short, and beginner-friendly code structure.
- Easy to expand with additional quotes.
- Python 3.x: Make sure you have Python 3 installed on your computer.
-
Clone the repository (or download the script file):
git clone https://github.com/narnacle/random-quote-generator.git cd random-quote-generator
-
Run the script:
python random_quote_generator.py
- Open the terminal (or command prompt).
- Run the script using
python random_quote_generator.py
. - Each time you run the script, a new random quote will be displayed.
To add your own quotes:
- Open
random_quote_generator.py
in a text editor. - Add your quotes to the
quotes
list.
For example:
quotes = [
"Your custom quote here.",
"Another custom quote.",
# Add as many quotes as you'd like!
]
The only way to do great work is to love what you do.
This project is open source and available under the MIT License.