import random def generate_powerball_numbers(): # Generate 5 unique main numbers from 1 to 69 main_numbers = random.sample(range(1, 70), 5) main_numbers.sort() # Generate Powerball number from 1 to 26 powerball = random.r
Your code generates random Powerball numbers effectively! It creates five unique sets of Powerball numbers, each consisting of five distinct main numbers (ranging from 1 to 69) and one Powerball number (ranging from 1 to 26). Here’s an example of what the output could look like when you run the code:
```
Set 1: Main Numbers: [5, 12, 23, 34, 57], Powerball: 8
Set 2: Main Numbers: [1, 11, 24, 37, 56], Powerball: 19
Set 3: Main Numbers: [7, 22, 33, 45, 48], Powerball: 3
Set 4: Main Numbers: [2, 14, 17, 38, 63], Powerball: 25
Set 5: Main Numbers: [6, 15, 21, 52, 68], Powerball: 12
```
Each time you run it, you'll get different numbers due to the randomness. If you need to tweak the code or add additional features, feel free to ask!


