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, 23.06.2019 01:00
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
These statements describe lists in presentation programs: a. bullets can be turned off and on. b. bullets cannot be turned off. c. bullet styles, colors, and sizes can be changed. d. lists don't have to use bullets or numbers. e. numbering styles, colors, and sizes can be changed. f. numbers can be turned off and on. g. numbers cannot be turned off. select all that apply
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Why should you evaluate trends when thinking about a career path?
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, 27.09.2019 08:10
question
Mathematics, 27.09.2019 08:10
Questions on the website: 13722361