subject

Write a python program to do the following: (a)use a for loop and a random integer generator to generate 5 random integers in 1 to 9. store the random integers in a list. display the list. (b)use a for loop and a random integer generator to generate 5 random integers in 2 to 8. store the random integers in a second list. display the second list. (c)use a for loop to compare elements in the two lists in pairs, i. e., compare the first elements in both lists, compare the second elements in the both lists, etc. display the larger number in each comparison. the following is an example. there is no user input in this program.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Signal sets company contracts to deliver one hundred 52-inch plasma high-definition television sets to a new retail customer, tuner tv store, on may 1, with payment to be made on delivery. signal tenders delivery in its own truck. tuner's manager notices that some of the cartons have scrape marks. tuner's owner phones signal's office and asks whether the sets might have been damaged as they were being loaded. signal assures tuner that the sets are in perfect condition. tuner tenders signal a check, which signal refuses, claiming that the first delivery to new customers is always for cash. tuner promises to pay the cash within two days. signal leaves the sets with tuner, which stores them in its warehouse pending its "grand opening sale" on may 15. two days later, tuner's stocker opens some of the cartons and discovers that a number of the sets are damaged beyond ordinary repair. signal claims tuner has accepted the sets and is in breach by not paying on delivery. will signal succeed on these claims? explain.
Answers: 1
question
Computers and Technology, 22.06.2019 09:00
Designing a mobile web page is a little different from designing a regular web page. name at least three features that should be considered when designing a website that is mobile phone-friendly, and briefly explain why they are important.
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
You know the right answer?
Write a python program to do the following: (a)use a for loop and a random integer generator to gen...
Questions
question
Mathematics, 10.10.2021 06:40
question
Mathematics, 10.10.2021 06:40
question
Mathematics, 10.10.2021 06:40
question
Mathematics, 10.10.2021 06:40
Questions on the website: 13722363