Skip to content

saeed205/Lottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Random Name Pairing

This project contains a Python script that reads a list of names from a file, shuffles them, pairs them up, and displays the pairs in a formatted table using the PrettyTable library.

Features

  • Reads names from a specified file
  • Randomly shuffles the names
  • Pairs names and displays them in a table format
  • Adds separator rows for better visual clarity

Requirements

  • Python 3.x
  • prettytable library

Installation

  1. Clone the repository:

    git clone https://github.com/saeed205/Lottery.git
  2. Navigate to the project directory:

    cd Lottery
  3. Install the required library:

    pip install prettytable

Usage

  1. Create a text file named people.txt in the project directory and add names to it, one per line.

  2. Run the script:

    python your_script_name.py

    Replace your_script_name.py with the actual name of your Python script file.

    Example

Given a people.txt file with the following content:

Alice Bob Charlie Diana Eve Frank

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages