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.
- 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
- Python 3.x
prettytable
library
-
Clone the repository:
git clone https://github.com/saeed205/Lottery.git
-
Navigate to the project directory:
cd Lottery
-
Install the required library:
pip install prettytable
-
Create a text file named
people.txt
in the project directory and add names to it, one per line. -
Run the script:
python your_script_name.py
Replace
your_script_name.py
with the actual name of your Python script file.
Given a people.txt
file with the following content:
Alice Bob Charlie Diana Eve Frank
Contributions are welcome! Please open an issue or submit a pull request for any changes.