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
nevsk [136]
3 years ago
11

A loop that will output every other name in the names list.

Computers and Technology
1 answer:
Nuetrik [128]3 years ago
4 0

Answer:

names = ['Peter', 'Bruce', 'Steve', 'Tony', 'Natasha', 'Clint', 'Wanda', 'Hope', 'Danny', 'Carol']

numbers = [100, 50, 10, 1, 2, 7, 11, 17, 53, -8, -4, -9, -72, -64, -80]

for index, element in enumerate(names):

if index % 2 == 0:

 print(element)

for num in numbers:

 if num >= 0:

   print(num, end = " ")

count = 0

for i in numbers:

 count += i

avg = count/len(numbers)

print("sum = ", count)

print("average = ", avg)

for num in numbers:

 if num % 2 != 0:

   print(num, end = " ")

Explanation:

I'm stuck on the last two.. I have to do those too for an assignment.

You might be interested in
Bioengineering can be defined as biological or medical application of engineering principles or engineering
Licemer1 [7]
I think the answer is true
3 0
3 years ago
What is objective reporting?
stira [4]
Objective reporting is reporting that separates facts and opinion.
7 0
3 years ago
Plssssssssssssssssssssssss helpp
brilliants [131]
Tell me the question
8 0
4 years ago
Question 1: Explain what does it mean to apply abstraction layer (security) in PowerShell. In your own words​
mixas84 [53]

Abstraction is the process of writing and constructing code in layers that connect and link to one another, thereby creating a framework around a notion.

Abstraction in PowerShell recommended a strategy that refers to developing code that engages with something but does not directly engage with it. Writing code with abstraction in the right perspective makes it easier to change loosely coupled programs over time.

By incorporating an abstraction layer into your code, you may standardize what may seem to be unstructured code. It also helps you organize and even create interfaces for unappealing code that you can't modify.

Learn more about abstraction here:

brainly.com/question/7994244

5 0
2 years ago
Which is the following is a valid email id<br><br>​
Minchanka [31]

Answer:

sorry there are no options available

6 0
3 years ago
Other questions:
  • An attacker captures an encrypted message. he tries decrypting with every possible key until the decryption process reveals a se
    14·1 answer
  • What could be one possible reason where the recipient is not guaranteed that the data being streamed will not get interrupted?
    15·1 answer
  • The two roots of a quadratic equation ax^2 + bx + c = 0 can be obtained using the following formula:
    15·1 answer
  • In your opinion, why did Proponents<br>of IPs used IPV6 instead of IPv5​
    7·1 answer
  • N
    10·1 answer
  • Serena, an analyst at an environmental agency, wants to prepare a report using data from the Car Emissions database.
    11·2 answers
  • Program Convert Measurements:
    15·1 answer
  • As you will solve more complex problems, you will find that searching for values in arrays becomes a crucial operation. In this
    9·1 answer
  • WHO WANT P O I N T S.................................................
    9·1 answer
  • Question2.<br> What are the functions of information technology?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!