Skip to content

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!

License

Notifications You must be signed in to change notification settings

narnacle/random-quote-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Random Quote Generator

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!

Table of Contents


Overview

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.

Features

  • Generates a random quote on each run.
  • Simple, short, and beginner-friendly code structure.
  • Easy to expand with additional quotes.

Requirements

  • Python 3.x: Make sure you have Python 3 installed on your computer.

Getting Started

  1. Clone the repository (or download the script file):

    git clone https://github.com/narnacle/random-quote-generator.git
    cd random-quote-generator
  2. Run the script:

    python random_quote_generator.py

Usage

  1. Open the terminal (or command prompt).
  2. Run the script using python random_quote_generator.py.
  3. Each time you run the script, a new random quote will be displayed.

Customization

To add your own quotes:

  1. Open random_quote_generator.py in a text editor.
  2. 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!
]

Example Output

The only way to do great work is to love what you do.

License

This project is open source and available under the MIT License.

About

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!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages