Create a program that will make a list of even numbers from 100 to 200 (inclusive) stored in a variable called uber_list. Then prompt the user for indices (start and end) to create a new list sliced from uber_list called data_list. Calculate and print the size and average value of data_list). Expected Output What is the start of your slice? What is the end of your slice? 5 Your slice contains 5 values and has an average value of 104.0

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

im not understanding this assigment

Your program should use the `range` function to populate a variable named `uber_list` with even numbers from 100 to 200 (including 200).

Your program should use the `input` function to find the beginning and end of the slice to be copied to `data_list`.

Your program should have a variable named `total` to be used as an accumulator in calculating the average.

Your program should use a `for` loop to calculate the average value of `data_list`.

Your program should use f-strings to print the final line of output.

### Tips and Tricks

- Use the debugger to see what's happening in your code.
- Don't be afraid to print things out as you go to make sure that you're getting the results you expect; for example, I would print `data_list` after the user input just to make sure it looked right and then remove that print statement for submission.
Transcribed Image Text:Your program should use the `range` function to populate a variable named `uber_list` with even numbers from 100 to 200 (including 200). Your program should use the `input` function to find the beginning and end of the slice to be copied to `data_list`. Your program should have a variable named `total` to be used as an accumulator in calculating the average. Your program should use a `for` loop to calculate the average value of `data_list`. Your program should use f-strings to print the final line of output. ### Tips and Tricks - Use the debugger to see what's happening in your code. - Don't be afraid to print things out as you go to make sure that you're getting the results you expect; for example, I would print `data_list` after the user input just to make sure it looked right and then remove that print statement for submission.
**Programming Task**

Create a program that will make a list of even numbers from 100 to 200 (inclusive) stored in a variable called `uber_list`. Then prompt the user for indices (start and end) to create a new list sliced from `uber_list` called `data_list`. Calculate and print the size and average value of `data_list`.

**Expected Output**

```
What is the start of your slice? 0
What is the end of your slice? 5
Your slice contains 5 values and has an average value of 104.0
```

**Explanation**

1. **Initial List Creation**: The program generates a list of even numbers ranging from 100 to 200 and stores it in `uber_list`.

2. **User Input**: The program prompts the user to enter the start and end indices to define a slice of `uber_list`.

3. **List Slicing**: A new list, `data_list`, is created using the specified indices.

4. **Calculations**: The program calculates the number of elements in `data_list` and the average of those values.

5. **Output**: The output shows the size of the slice and its average value based on user-defined indices.
Transcribed Image Text:**Programming Task** Create a program that will make a list of even numbers from 100 to 200 (inclusive) stored in a variable called `uber_list`. Then prompt the user for indices (start and end) to create a new list sliced from `uber_list` called `data_list`. Calculate and print the size and average value of `data_list`. **Expected Output** ``` What is the start of your slice? 0 What is the end of your slice? 5 Your slice contains 5 values and has an average value of 104.0 ``` **Explanation** 1. **Initial List Creation**: The program generates a list of even numbers ranging from 100 to 200 and stores it in `uber_list`. 2. **User Input**: The program prompts the user to enter the start and end indices to define a slice of `uber_list`. 3. **List Slicing**: A new list, `data_list`, is created using the specified indices. 4. **Calculations**: The program calculates the number of elements in `data_list` and the average of those values. 5. **Output**: The output shows the size of the slice and its average value based on user-defined indices.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY