Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Python program that will do the following, in this order: 1. Declare an initially empty list. 2. Input 15 floats from the user

Write a Python program that will do the following, in this order:

1. Declare an initially empty list.

2. Input 15 floats from the user and add them, in the order they are entered, to the list.

3. Output the 15 floats in their order in the list by iterating through the list, then iterate through the list in reverse order, followed by their average (compute the sum via code, not a Python library function). Do not create/copy/change the list (e.g. dont use .reverse())

4. Output the amount of values in the list that are above the average, below the average, and equal to the average. (Note: do not sort the array.)

5. Output the highest and lowest numbers input (via code, not a Python library function).

*All numbers need to be printed to (only) one decimal place.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

Students also viewed these Databases questions

Question

What does the start( ) method defined by Thread do?

Answered: 1 week ago