Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Python: generation of lottery number: As you drive across one of the Washington DC monuments, there appeared to be a billboard with bold words informing

Python: generation of lottery number:

As you drive across one of the Washington DC monuments, there appeared to be a billboard with bold words informing the citizens of DC that the Powerball jackpot has risen to one of the all-time high. As you rest in your deep thoughts thinking that you have chance to win this jackpot. As an IT professional living and working in the District of Columbia area living with five other fellow roommates, who are in the same situation. As the only IT expert in this house, you decided to try your luck and to generate some pseudo-numbers to see this jackpot can be claimed by you and your fellow roommates.

Requirements:

Create one function called lotto() with no data inside the parameter area.

Inside this lotto() function o Write one loop to create the five normal Numbers + Powerball o Write a second loop to create a total of 10 Lottery tickets

No need to prompt any User for input.

You can make it fancy to include a main() to call the lotto().

Must use a python List 2 Random seed must be feed a time element.

Must use a python random class aka import random and import time

Must use a python random seed function

Regular numbers are inclusive 1 to 70, Powerball numbers are 1-25 inclusive.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions