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
Alan wants to buy camera support equipment that would provide mechanical support to his camera and which could also store extra
Andru [333]

Answer:

Could it be tripod?

Explanation:

If you did this question do you remember what the answer was?

4 0
3 years ago
What is authentication?
Savatey [412]

Answer:

C

Explanation:

I believe that's the answer if it's not sorry

8 0
3 years ago
What are some pros and cons of being a Computer Hardware Engineer?
olganol [36]
Pros: Median salary is high (about $108,430), Employable in many different industries, like product manufacturing, computer systems design and scientific research.
Cons: Limited job growth, often requires long hours.
8 0
4 years ago
Bugs bunny personality traits
Dafna1 [17]

Answer:

As a character, Bugs Bunny is king, and he's as close to an animated culture hero as we're going to get. Think about it. He's the person you want to be — the smartest one in the room who's still effortlessly cool. He's quick-witted, funny, and even a little cruel, but only to his tormenters.

Explanation:I hope this helps!!!Plz leave a heart and a rating!!

3 0
4 years ago
8. Why is it important not to download pictures to your school or workplace network if you do not plan to use them?
Anni [7]

Answer:

not appropriate use of technology.

Explanation:

7 0
3 years ago
Other questions:
  • If you want to open an application that does not have a tile pinned to the start menu
    9·1 answer
  • What are two methods for playing a slide show from the first slide?
    9·2 answers
  • Using C#, declare two variables of type string and assign them a value "The "use" of quotations causes difficulties." (without t
    11·1 answer
  • Quantas calorias os adolescentes devem consumir diariamente?
    14·1 answer
  • What is considered Tim Berners-Lee's greatest contribution to the World Wide Web?
    5·1 answer
  • Proofreaders' marks are:
    6·1 answer
  • which statement is true? O A Future games will be more context oriented. OB. Future games will be more product driven. Future ga
    13·2 answers
  • True or False. A geosynchronous satellite changes its area in the sky each day.
    5·2 answers
  • 5) The City Jail Technologies Department is constructing an application to allow users in the Crime Analysis Unit to query data
    11·1 answer
  • Why can't I go back to my first question when I asked a question about In the Naruto episodes about what happen when naruto figh
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!