subject
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]

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
How can data be added to a new table in data base
Answers: 1
question
Computers and Technology, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
You know the right answer?
Write a Python program to do the following: (a)Ask the user to enter as many integers from 1 to 10 a...
Questions
question
Social Studies, 16.10.2020 01:01
question
Mathematics, 16.10.2020 01:01
question
Mathematics, 16.10.2020 01:01