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]
3 years ago
15

Write a python program to apply this:

Engineering
1 answer:
lakkis [162]3 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
Which of the following are considered software piracy? Check all of the boxes that apply.
Serga [27]

Answer:

The answer is copying a program to give to someone else to use

and burning a copy of a DVD to sell

Explanation:

Software piracy is the act of stealing software that is legally protected. This stealing includes copying, distributing, modifying or selling

7 0
3 years ago
A clutch is chattering. Technician A says that uneven wear on the flywheel could be the cause. Technician B says that worn or br
svet-max [94.6K]

Answer:

Both Technician A and B are correct

Explanation:

Due to a contamination of the clutch disc friction surface, the clutch chatters

The contamination that causes clutch chattering includes

1) Worn or broken motor mounts

2) Bell housing bolts becoming loose

3) Clutch link damage

4) Warped flywheel, due to overheating, the flywheel can become warped such that the non uniform surface interfaces the clutch resulting in clutch chattering

5) Engine or transmission oil contaminating the disc.

4 0
3 years ago
In order to defend against side channel power analysis, we should: ______________
wariber [46]

Answer:

Some examples of predator and prey are lion and zebra, bear and fish, and fox and rabbit. ... The words "predator" and "prey" are almost always used to mean only animals that eat animals, but the same concept also applies to plants: Bear and berry, rabbit and lettuce, grasshopper and leaf

Explanation:

8 0
3 years ago
"geophysical exploration definition"​
Strike441 [17]

Answer:

Exploration geophysics is an applied branch of geophysics and economic geology, which uses physical methods, such as seismic, gravitational, magnetic, electrical and electromagnetic at the surface of the Earth to measure the physical properties of the subsurface, along with the anomalies in those properties

7 0
3 years ago
Read 2 more answers
If cars run by lighting gasoline on fire then releasing gas that pushes the wheels to turn, then why can we not run on boiling w
mezya [45]

Answer:

omg it would burn our insides. we're not made of metal lols

Explanation:

you should mark me as brainliest :)

7 0
3 years ago
Other questions:
  • An air-standard Otto cycle has a compression ratio of 6 and the temperature and pressure at the beginning of the compression pro
    13·1 answer
  • A rigid tank contains an ideal gas at 40°C that is being stirred by a paddle wheel. The paddle wheel does 240 kJ of work on the
    9·1 answer
  • Please help me with this question​
    8·1 answer
  • Write a program that prompts the user to enter two characters and display the corresponding major and year status. The first cha
    7·1 answer
  • Why does an object under forced convection reach a steady-state faster than an object subjected to free-convection?
    5·1 answer
  • Using phasors, the value of 37 sin 50t + 30 cos(50t – 45°) is _________ cos(50t+(_____°)). Please report your answer so the magn
    5·1 answer
  • 5. Create a function named second_a that uses a list comprehension. The function will take a single integer parameter n. Find ev
    7·1 answer
  • A two-phase mixture of water and steam with a quality of 0.63 and T = 300F expands isothermally until only saturated vapor rema
    7·1 answer
  • Answer the question faster please
    7·1 answer
  • What is the purpose of encryption?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!