Write me a simple python script to guess power ball numbers.
Certainly! Below is a simple Python script that generates random Powerball numbers. In the Powerball lottery, players must pick five numbers from a set of 69 (the white balls) and one number from a set of 26 (the Powerball).
Here's a script that simulates this:
```python
import random
def generate_powerball_numbers():
# Generate 5 unique white ball numbers from 1 to 69
white_balls = random.sample(range(1, 70), 5)
# Sort the white balls for better readability
white_balls.sort()
# Generate 1 Powerball number from 1 to 26
power_ball = random.randint(1, 26)
return white_balls, power_ball
def main():
print("Welcome to the Powerball Number Generator!")
white_balls, power_ball = generate_powerball_numbers()
print(f"Your Powerball numbers are: {white_balls} and Powerball: {power_ball}")
if __name__ == "__main__":
main()
```
### How to Use the Script:
1. Copy the code into a Python (.py) file, for example, `powerball_generator.py`.
2. Run the script using a Python interpreter. You can do this in your terminal or command line with the command:
```
python powerball_generator.py
```
3. The script will generate and display a random set of Powerball numbers each time it is run.
### Notes:
- This script generates random numbers and does not predict actual winning numbers.
- You can run the script multiple times to get different sets of numbers.
- Make sure to have Python installed on your computer to run this script.


