1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sergiy2304 [10]
3 years ago
15

Write a program that reads numbers from the user until a blank line is entered. Your

Computers and Technology
1 answer:
ddd [48]3 years ago
5 0

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.

You might be interested in
4. When you see ##### in a cell, you should
PolarNik [594]

Answer:

decreace cell width

Explanation:

4 0
3 years ago
Read 2 more answers
Based on your understanding of Moore’s Law, what do you predict will be the next trend in the evolution of computers?
miss Akunina [59]

Actually, the answer is (B) Computers will continue to become smaller in size and become faster.  For example, google  i9-9900k mini itx pc build. You can have an insanely powerful pc and it be very small.

5 0
3 years ago
I will make you brainless just answer all this question!!​
Taya2010 [7]

Answer:

I have make this question please answer this

Explanation:

#carryonlearning

8 0
3 years ago
Typically, what form do most database designers consider a database structure to be normalized?
klemol [59]
Hello,

Answer is Third 

Hope This Help!!!
6 0
3 years ago
Write the definition of a method powerto, which receives two parameters. the first is a double and the second is an int. the met
mihalych1998 [28]
       
The case of x⁰=1 is one you shouldn't overlook!

double powerto(double f, int exponent)
{
            if (exponent < 0) { return 0; }
            if (exponent == 0) { return 1.0; }          
            while (--exponent > 0) { f *= f; }
            return f;
}
5 0
4 years ago
Other questions:
  • Why will the standard replacement algorithms (LRU, FIFO, clock) not be effective in handling this workload for a page allocation
    11·1 answer
  • When configuring services, what linux directory typically contains server configuration files?
    8·1 answer
  • Use a logical OR to write a more concise equivalent of the following code:
    11·1 answer
  • Question 7 of 10
    13·1 answer
  • Why dose this keep popping up i dont understand plz resond first person gets branilest
    13·1 answer
  • How can ICT be a tool in connecting all stakeholders in your community?
    5·1 answer
  • A salesman has been traveling to different businesses all day to give a sales presentation. Each time, he was starts up his lapt
    12·1 answer
  • Why does brainly say im in highschool when im in middle school?
    15·2 answers
  • Is e commerce a challenge or opportunity to the freight forwarder
    8·1 answer
  • ____ is Windows XP system service dispatch stubs to executables functions and internal support functions.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!