Write a program that reads numbers from the user until a blank line is entered. Your
program should display the average of all of the values entered by the user. Then
the program should display all of the below average values, followed by all of the
average values (if any), followed by all of the above average values. An appropriate
label should be displayed before each list of values.

Answers

Answer 1

Answer:

nums = []

while True:

   in = input()

   if in:

       nums.append(in)

   else:

       break

if nums:

   avg = sum(nums) / len(nums)

   for i in range(len(nums)):

       if nums[i] == avg:

           print(f"index: {i+1}")

           print(nums[i])

else:

   print(-1)  # if there aren't any values in nums

Explanation:

Assuming that you are coding in Python 3x. The last 'else' statement is an edge case that you might want to consider, I don't know what you want to put there, but I'm just going to leave it as -1.


Related Questions

PYTHON: Define a function calc_pyramid_volume() with parameters base_length, base_width, and pyramid_height, that returns the volume of a pyramid with a rectangular base. calc_pyramid_volume() calls the given calc_base_area() function in the calculation.

Relevant geometry equations:
Volume = base area x height x 1/3
(Watch out for integer division).

Sample output with inputs: 4.5 2.1 3.0
Volume for 4.5, 2.1, 3.0 is: 9.45

def calc_base_area(base_length, base_width):
return base_length * base_width

''' Your solution goes here '''

length = float(input())
width = float(input())
height = float(input())
print('Volume for', length, width, height, "is:", calc_pyramid_volume(length, width, height))

I've been trying all morning but I can't seem to figure this one out. I might be overthinking it, but I haven't been able to get it to work.

Answers

Answer:

def calc_pyramid_volume(base_length,base_width,pyramid_height):

   base_area=base_length*base_width

   volume=base_area*pyramid_height*(1/3)

   return volume

Explanation:

Here you go, fellow cs 105 student. Copy and paste it all into the box.

did y’all enjoyed project next phase 3 and The 4 revamped heroes

Answers

Answer:

it was good i liked it

Explanation very good

LANGUAGE IS PYTHON PLEASE HELP.

Write a while loop that repeats while user_num ≥ 1. In each loop iteration, divide user_num by 2, then print user_num.

Sample output with input: 20
10.0
5.0
2.5
1.25
0.625

Answers

10.0 + 5.0 + 2.5 = 17

Give one of user responsibility of the internet you should follow in cyberethics.






**Answer and I will give you brainiliest**​

Answers

Answer:

One of the user responsibility is to use appropriate language when talking to others, mind you behavior and make sure to stay out of trouble, like hacking someone computer without permission and never send any malware to anyone without consent of the user.

What do Virtually all of the 7 million millionaires in the United States do??
Virtually all of the 7 million millionaires in the United States:

never had to think about tomorrow, since they knew they would be rich.

were always thinking ahead.

wanted their money to work for them.

wanted to store their money under the bed.

were looking forward to buying a lot of nice toys.

assumed all sellers were telling the truth.

learned how to make smart decisions by doing their homework.

always paid their cell phone first.

always paid themselves first.

Answers

It is assumed by a lot of people that the life of the people who are very rich is very easy and that they do not have to work so hard. People think that the rich people have always had a bed of roses kind a life for them. But that is not the reality. Rich people also have to work hard to get success in their life and for that they have to think properly and wisely before making decisions in their life. These people have to make a lot of research and do a lot of home work before making decisions and have to think a lot. It is not very easy for them also.

Option 7 is the most apt

but if there can be multiple options, then it would be 2,3,7 and 9

Many people believe that the lives of the wealthy are easy and also that they do not have to work as hard as the rest of us.

7 million millionaires in the United States:

People believe that the lives of the wealthy has always been a bed of roses.

However, this is not the case. Rich individuals must also work hard in order to achieve success in life, and they must think carefully and sensibly before making decisions.

Before making judgments, these folks must conduct extensive study and complete extensive homework, as well as reflect deeply. It's not easy for them either.

So, option '7' is the correct answer to the following question.

Find out more information about 'Judgments'.

https://brainly.com/question/26380040?referrer=searchResults

What type of device is OMR input or Output

Answers

Answer

input

Explanation:

modern ones are now input

if a hacker wants to exploit the TCP three-way handshake, what is the most effective way to go about it?

Answers

The most effective way to exploit TCP three-way handshake is TCP SYN flood.

SYN flood attack is simply a kind of computer attack that begins with 3-way TCP handshake. TCP SYN flood is also called SYN flood and it is a type of distributed Denial of Service (DDoS) attack that uses every part of the normal TCP three-way handshake to eat up resources on the known server and render it non-functionalWith TCP SYN flood, a hacker can eat up resources of target's computer and makes it unresponsive.

From the above, we can therefore say that the most effective way to exploit TCP three-way handshake is TCP SYN flood.

Learn more from:

https://brainly.com/question/14739766

Please please help I don’t understand this

Answers

Answer:

It is this because yass

Explanation:

And yes

Answer:

Yes it is this because yes

Explanation:it is this because

Please help me with these questions please

Answers

Answer:

The answer is 20, if this helps you please give the brainliest award.

These operating systems were referred to as command-based.

Android and MS-DOS
iOS and Windows
LINUX and UNIX
MS-DOS and UNIX

Answers

[tex]{\underline{\boxed{\bf{MS - DOS \: and \: UNIX}}}}[/tex]

It is Linux and Unix!

name of the people associated with the development of computer briefly explain thier contribute

Answers

Snsnsnnsnsnsnsjsmsns

What is one still image in a film or video called?
unit
frame
stand
selection

Answers

Answer:

frame

Explanation:

the answer is frame ;)

Answer:

Frame

A still frame is a single static image taken from a film or video, which are kinetic (moving) images. Still frames are also called freeze frame, video prompt, preview or misleadingly thumbnail, keyframe, poster frame, or screen shot/grab/capture/dump

Explanation:

Pls mark as brainliest


Name the five automated information systems - The Vendors

Answers

Answer:

The computer age introduced a new element to businesses, universities, and a multitude of other organizations: a set of components called the information system, which deals with collecting and organizing data and information.

An information system is described as having five components.

1- Computer hardware. This is the physical technology that works with information.

2- Computer software. The hardware needs to know what to do, and that is the role of software.

3- Telecommunications.

4- Databases and data warehouses.

5- Human resources and procedures.

Explanation:

Computer hardware

This is the physical technology that works with information. Hardware can be as small as a smartphone that fits in a pocket or as large as a supercomputer that fills a building. Hardware also includes the peripheral devices that work with computers, such as keyboards, external disk drives, and routers. With the rise of the Internet of things, in which anything from home appliances to cars to clothes will be able to receive and transmit data, sensors that interact with computers are permeating the human environment.

Computer software

The hardware needs to know what to do, and that is the role of software. Software can be divided into two types: system software and application software. The primary piece of system software is the operating system, such as Windows or iOS, which manages the hardware’s operation. Application software is designed for specific tasks, such as handling a spreadsheet, creating a document, or designing a Web page.

Telecommunications

This component connects the hardware together to form a network. Connections can be through wires, such as Ethernet cables or fibre optics, or wireless, such as through Wi-Fi. A network can be designed to tie together computers in a specific area, such as an office or a school, through a local area network (LAN). If computers are more dispersed, the network is called a wide area network (WAN). The Internet itself can be considered a network of networks.

Databases and data warehouses

This component is where the “material” that the other components work with resides. A database is a place where data is collected and from which it can be retrieved by querying it using one or more specific criteria. A data warehouse contains all of the data in whatever form that an organization needs. Databases and data warehouses have assumed even greater importance in information systems with the emergence of “big data,” a term for the truly massive amounts of data that can be collected and analyzed.

Human resources and procedures

The final, and possibly most important, component of information systems is the human element: the people that are needed to run the system and the procedures they follow so that the knowledge in the huge databases and data warehouses can be turned into learning that can interpret what has happened in the past and guide future action.

Question 5 / 15
What does clicking and dragging the fill handle indicated by the cursor below do?
077
Х
✓ fx
=0.08*B77
B.
с
76
Sales
Tax
77
$794
$64
78
$721
79
$854
80
$912
81
$1,020

Answers

Answer:

$1,020 that is my answer because it will be that one

The value that would be returned based on the formula [=COUNTIF(A43:A47, "NP*")] in cell A49 is 4.

Microsoft Excel can be defined as a software application that is designed and developed by Microsoft Inc., so as to avail its end users the ability to analyze and visualize spreadsheet documents.

In Microsoft Excel, there are different types of functions (predefined formulas) and these include:

Sum functionAverage functionMinimum functionMaximum functionCount function

A count function is typically used to to calculate the number of entries in a cell or number field that meets a specific (predefined) value set by an end user.

In this scenario, "NP*" is the specific (predefined) value that was set and as such the value that would be returned based on the formula in cell A49 is 4 because A43, A44, A45 and A46 contain the value "NP."

Read more on Excel formula here: https://brainly.com/question/25219289

What refers to the images of characters you use in a game?

Answers

Answer:

the character image in the game

Describe how reflection can be used to achieve team improvement.

Answers

Answer:

Explanation:

Research also proves that encouraging your team to adopt a reflective process is likely to improve job performance, especially when reflection is coupled with an examination of the strategies .

which is NOT a basic human sense used in collecting collecting data?

Answers

Answer:

Explanation:This section outlines some of the key considerations that may arise during various steps in the data collection process. There is no requirement that these steps be followed or pursued in the order that they are written. The model presented is offered as a reference tool. How data is gathered and analyzed depends on many factors, including the context, the issue that needs to be monitored, the purpose of the data collection, and the nature and size of the organization.

BRIANLIEST!!!!!!!!!!!!!!!!


Which of the following types of indents shown in the image?

○ Hanging indent
○ Right indent
○ First Line indent
○ Decrease indent​

Answers

The First Line indent is shown in the image. Thus, option C is correct.

What is an indent?

An indent is a spacing that results from spacing a block of information farther inside than just the surrounding content. To the right of the start of the following line, an indentation for the inaugural line appears. Many parts must follow first-line spacing according to APA standards.

The very first sentence about a partnership that follows a headline or chapter title is not indented, as was mentioned in the previous section.

The tab key on just about any keyboard automatically indent each sentence that comes after it for you. The different layout is occasionally recommended for specific sorts of writing, including research publications and internal memos. Therefore, option C is the correct option.

Learn more about indent, here:

https://brainly.com/question/12090649

#SPJ6

Explain how AI smartphone software in the rental car can be a threat to privacy.



Answer and I will give you brainiliest ​

Answers

Answer:

The real reason why AI smartphone software in the rental car is threat to privacy is that the data transmitted can actually be exposed to security breaches in the software and so if that happens, the car is no longer under the control of the user.

Hope this helps!

which of the following statements describes the general idea of an assistive media​

Pasagot po plssss

Answers

Answer:

What statmentssssssssss

The general idea of assistive media is described by C) Technology or tools designed to aid individuals with disabilities in accessing information and interacting with the world.

We have,

Assistive media refers to various technologies or tools that are specifically developed to assist people with disabilities.

These tools are designed to enhance their ability to access information, communicate effectively, and interact with their environment.

Assistive media can take many forms, such as screen readers for individuals with visual impairments, communication devices for those with speech disabilities, adaptive keyboards or switches for individuals with motor impairments, and more.

The main purpose of assistive media is to level the playing field and provide individuals with disabilities the means to participate fully in various aspects of life, including education, communication, work, and social interactions.

Thus,

The general idea of assistive media is described by C) Technology or tools designed to aid individuals with disabilities in accessing information and interacting with the world.

Learn more about assistive media here:

https://brainly.com/question/29891210

#SPJ3

The complete question:

Which of the following best describes the concept of assistive media?

A) A form of social media that helps people connect with friends and family.

B) A type of entertainment media, such as movies or music.

C) Technology or tools designed to aid individuals with disabilities in accessing information and interacting with the world.

D) Media coverage of events and news happening globally.

F
Х
Which is a feature of fairy tales in "A Modern Cinderella"?
O A. It begins with "Once Upon a Time."
O B. It includes pictures.
O C. It has a humorous tone.
Is it a b c or d that’s what I’m loo

Answers

Answer:

everything

A.

B.

C.

NOOO.

Project light with a system of lenses used for projecting slides or film into a screen.

Answers

Answer:

Optical system. An overhead projector works on the same principle as a slide projector, in which a focusing lens projects light from an illuminated slide onto a projection screen where a real image is formed.

Explanation:

8. This machine is used for high speed, high volume printing l. Can print about 1000 papers at one point in time.

A) Scanner
B) Printer
C) Risograph
D) Photocopier

Answers

Answer:

Risographs can produce up to typically 150 pages per minute. So I'm guessing its c.

Explanation:

QUESTION 8
A
is a vertical group of cells in a worksheet.
Column
Row
Value
Formula

Answers

I believe that the answer is column.

How do I jitter click and aim? I have been trying forever and it is not working. Please help. (75 Points)

Answers

Answer:

Make sure you are not pressing the mouse button to click, but vibrating your hand to click. Try using two fingers to jitter-click, Sometimes you can improve your speed using your index finger and middle finger, or even your index finger and thumb. You can do this!

A team member who feels uncomfortable when disagreeing with another team member is likely from a(n) _______(fill in the blank) culture.
competetive
individualistic
collectivistic

Answers

collectivistic culture

A team member who feels uncomfortable when disagreeing with another team member is likely from a collectivistic culture.

What is a collectivistic culture?

Personal identity is the element in a collectivist culture where ties between persons and relationships with other group members are crucial.

People who are kind, helpful, trustworthy, and considerate of others are viewed favorably in collectivist cultures.

While individualism emphasizes the importance of each person's rights and interests, collectivism emphasizes the value of the group. Individualism places a strong importance on independence and self-identity, whereas collectivism places a high value on togetherness and selflessness.

Therefore, the correct option is c, collectivistic culture.

To learn more about collectivistic culture, refer to the link:

https://brainly.com/question/10230027

#SPJ2

#2 i
Write -0.312 as a fraction in simplest form.
-0.312 =
-
What’s the answer

Answers

Answer: 39/125

Explanation:

OSI layer for HDLC??​

Answers

Answer:

HDLC is one of the most commonly used internet protocols (IP) in what is Layer 2 of the industry communication reference model called Open Systems Interconnection (OSI).

Explanation:

What agencies are in-charge of implementing the intellectual property code?

Answers

Answer:

List of Government Agencies in-charge of implementing the IPC: - Bureau of Patents. - Bureau of Trademarks. - Bureau of Legal Affairs.

Explanation:

Your answer → - Bureau of Patents -

2) Write down the values ​​for the hue, saturation, and intensity of the red color.

Answers

Answer:

can anyone help me in computer please

Other Questions
How do we calculate how fast (speed) Earth is rotating on its aristspeed = distance / timespeed = distance x timespeed = time / distance 7) Why must the amount of hot chocolate (50 ml) be the same in both cups for the experiment to work? when you receive fluid in the hospital, it is often 0.9% saline solution. what would happen if the nurse used distilled water instead? Help someone who speak Spanish asap Please help me solve this question. The depth of water in a water tower that is draining is decreasing at a constant rate of 1.75 feet per hour. Ifthe depth after 6 hours of draining is 8 feet then write an equation for the water depth, d, as a function of theamount of time it's been draining, t, in hours. Y'all ain't no freaking help on this app dang all I wanted was some help on my math is that to much to ask for How were Europeans affected by exploration of the Americas?They chose to open up trade routes rather than conquer territory and build empiresThey caught diseases and carried them back to Europe killing a portion of the populationThey became wealthier by finding gold and sending it back to EuropeThey were introduced to new technology used by Native Americans Write these expressions in exponential form. Example: 12 to the power of 2 x 12 to the power of 6= 12 to the power of 2 +61. 11 to the power of 16 x 11 to the power of 1=2. a to the power of 6 x a to the power of 8 = 3. (-2) to the power of 12 x (-2) to the power of 1=4. 1.1 to the power of 7 x 1.1 to the power of 9 =5. 3 to the power of 4 x 5 to the power of 2 = 9. Write the equation of the line that is parallel to the line 5x - 4y = 4 and passes through thepoint (-8, 2). Read the following passage introducing Chief Pontiac. Finally, the British worried that Native Americans, who sided with the French during the war, would not stop fighting. They were right: Native Americans led by Chief Pontiac fought with the British after they had won the land after the French and Indian War. The British worried that more colonists moving to the Ohio Valley would make the Native Americans angry. What does the author MOST LIKELY want the reader to think about Chief Pontiac?(A)that he wanted to convince the French that together they could still win the war against the Britishthat he wanted to convince the French that together they could still win the war against the British(B)that he was determined to keep the British out of the land where his people lived((C)that he wanted to impress the French with his ability to fight the British(D)that he expected the British to acknowledge that he was now their leader how do i solve (4+6i)+(8-10i)? 1. Qu palabra est mal escrita?O modestoO impedirexcederresistir which trade networks did the Black Death travel through in the mid-1300s? the ion with 36 electrons, 34 protons, and 44 neutrons what material is painted on the bandages to glue them together A substance with a pH value of 2.3 would be classified asO strong acidO weak acidO strong baseO weak base What is the value of g(2) please help i dont know how to do this :( Bonus points for helpersIf a 70 kg. skater acted upon by an unbalanced force of 161 N [West], what isits acceleration?