Computers and Technology
Computers and Technology, 02.10.2020 14:01, Ruchen

Write a Python program to do the following: (a)Ask the user to enter as many integers from 1 to 10 as he/she wants. Store the integers in a list. Every time after the user has entered an integer, use a yes/no type question to ask whether the user wants to enter another one. Display the list. (b)Display the largest element, the smallest element, the sum of all elements and the length of the list. (c)Calculate and display the average of the elements. (d)Reverse the order of the elements. Display the reversed list. (e)Move the last element to the front of the list, i. e., the last element becomes the first element while other elements remain the same. [Hint: Insert the last element to the front first, then delete the last element]

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:00, ajayfurlow
Which option should u select to ignore all tracked changes in a document
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, zay179
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
image
Computers and Technology, 23.06.2019 15:00, abelxoconda
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
image
Computers and Technology, 24.06.2019 14:30, ari313
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
Do you know the correct answer?
Write a Python program to do the following: (a)Ask the user to enter as many integers from 1 to 10 a...

Questions in other subjects:

Konu
Mathematics, 22.02.2021 19:40