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
galben [10]
4 years ago
15

Write a python program to apply this:

Engineering
1 answer:
lakkis [162]4 years ago
8 0

Answer:

# Initialize a dictionary with the keys

contestants = {"Darci Lynne":0, "Angelica Hale":0, "Angelina Green":0};

# Repeatedly prompt the user for a contestant name to vote for

while True:

 

  # Prompting user for contestant name

  cName = input("Enter contestant name to vote: ");

 

  # Checking for Done

  if cName.lower() == "done":

      break;

 

  # Checking in dictionary

  if cName in contestants.keys():

      # Updating vote value

      contestants[cName] += 1

  # New entry

  else:

      contestants[cName] = 1

 

# Printing header

print("\n%-20s %-15s\n" %("Contestant Name", "Votes Casted"))

# Printing results

for contestant in contestants:

  print("%-23s %-15d" %(contestant, contestants[contestant]))

You might be interested in
If the car passes point A with a speed of 20 m>s and begins to increase its speed at a constant rate of at = 0.5 m>s 2 , d
sattari [20]

Answer:

a = 1.68m/S^{2}

Explanation:

Please kindly find the attached file for explanations

3 0
3 years ago
Should aircraft wings have infinite stiffness?
Colt1911 [192]

Answer:

No, they need to be somewhat flexible so that forces such as turbulance don't shear the wing off.

3 0
3 years ago
Read 2 more answers
Getting the bottom of your feet burned when walking on hot sand is due to what form of energy transmission? group of answer choi
Scilla [17]

Getting the bottom of your feet burned when walking on hot sand is due to a form of energy transmission known as conduction.

<h3>The types of energy transmission.</h3>

In Science, there are three (3) main types of energy transmission and these include the following:

  • Convection
  • Radiation
  • Conduction

In this scenario, we can infer and logically conclude that burning the bottom of your feet when walking on hot sand is primarily due to a form of energy transmission known as conduction because it involves the transfer of thermal energy (heat) due to the movement of particles.

Read more on heat conduction here: brainly.com/question/12072129

#SPJ12

6 0
2 years ago
A manufacturer provides a warranty against failure of a carbon steel product within the first 30 days after sale. Out of 1000 so
irina1246 [14]
Answer: idk sorry we both on the same thing
7 0
3 years ago
For goods-producing firms, at which of the following levels of resource planning does scheduling for individual subassemblies an
VashaNatasha [74]

Answer:

Disaggregation

Explanation:

In a company it is a way to create operational plans that are focused, either by time or by section.

3 0
3 years ago
Other questions:
  • Air is used as the working fluid in a simple ideal Brayton cycle that has a pressure ratio of 12, a compressor inlet temperature
    13·1 answer
  • A shaft is made of an aluminum alloy having an allowable shear stress of τallow = 100 MPa. If the diameter of the shaft is 100 m
    13·2 answers
  • Hey, can anyone tell me if Igneous rock is good to build on? Cheers!
    6·1 answer
  • A stainless-steel specimen from the same material characterized up above, was formed into a rectangular cross-section of dimensi
    9·1 answer
  • 5. Identify the pros and cons of<br> manufactured siding.
    12·1 answer
  • A completely reversible heat pump produces heat ata rate of 300 kW to warm a house maintained at 24°C. Theexterior air, which is
    6·1 answer
  • A highway reconstruction project is being undertaken to reduce crash rates. The reconstruction involves a major realignment of t
    14·1 answer
  • What is the purpose of the graphic language?
    15·1 answer
  • A 75-hp motor that has an efficiency of 91.0% is worn-out and is replaced by a motor that has a high efficiency 75-hp motor that
    6·1 answer
  • What are the best collages for architectural learning?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!