Perform the following tasks on your lab machine: 1. Create a list with the following numbers (100,300,500,700,900,1100) using the range function and answer the following a. Print the length of the list b. Print the elements in the list such that each element appears in a separate line c. Print the sum all the items in a list

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

python, please solve the question according to these steps and thanks sir

Perform the following tasks on your lab machine:

1. Create a list with the following numbers (100, 300, 500, 700, 900, 1100) using the range function and answer the following
   a. Print the length of the list
   b. Print the elements in the list such that each element appears in a separate line
   c. Print the sum of all the items in a list
   d. Remove the minimum and the maximum elements from the list
   e. Insert a new element at index 3. The value of the new element is the nth square root of the last value of the list, take n from the user.
   f. Print the average value of the list
   g. Write a for loop to print the last 3 elements in the list in reverse order
   h. Divide the list into two new lists where the first 3 elements will be in list X and the remaining elements will be in list Y. Print both lists.
Transcribed Image Text:Perform the following tasks on your lab machine: 1. Create a list with the following numbers (100, 300, 500, 700, 900, 1100) using the range function and answer the following a. Print the length of the list b. Print the elements in the list such that each element appears in a separate line c. Print the sum of all the items in a list d. Remove the minimum and the maximum elements from the list e. Insert a new element at index 3. The value of the new element is the nth square root of the last value of the list, take n from the user. f. Print the average value of the list g. Write a for loop to print the last 3 elements in the list in reverse order h. Divide the list into two new lists where the first 3 elements will be in list X and the remaining elements will be in list Y. Print both lists.
Expert Solution
Step 1

“Since you have posted a question with multiple sub-parts, we will solve first three sub- parts for you. To get remaining sub-part solved please repost the complete question and mention the sub-parts to be solved.”.

Python programming language :

Python is a programming language with many features, such as intuitive syntax, powerful data structures, and dynamic typing. Python is also suitable for scripting, web development, and scientific computing. Python is a high-level, interpreted, general-purpose programming language, created on December 3, 1989, by Guido van Rossum, with a design philosophy entitled.

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education