subject
Engineering, 24.04.2020 22:00 kanerobertrosss2213

Help Maegan sort dogs by the general color of their fur and then count how many of each color of dog she has. You will write three functions. Here is information about their parameters: dog_dict: dictionary where the key is the dog's color, and the value is a list of dog breeds color: String representing a single dog's color dog: string representing the breed of dog Here are the implementation descriptions: 1. dogsort(dogdict, color, dog) You will insert the dog into the proper list in dog_dict, using the color as the key. 2. dogcount(dogdict, color) Return: The function returns the number of dogs of the given color in dog_dict 3. printdogs(dogdict, color) You will print out the list of dogs that are the given color, and the number of dogs of the given color. You will also print a special message depending on how many dogs are of the given color. The messages are as follows: Less than 2 dogs: Best doggo! 2 or more dogs but less than or equal to 5: Many doggo! More than 5 dogs: All the doggo! Examples: I have 1 white dog that is a: ['Corgi'] Best doggo! I have 2 black dogs that are the following breeds: ['Tibetan Mastiff', 'Kai Ken'] Many doggo! LAB ACTIVITY 11.20. 1: Lab Exam 1: Maegan's Dog 014 main. py Load default template... 1 def dog_sort (dog_dict, color, dog): pass 4 def dog_count(dog_dict, color): pass 7 def print_dogs (dog_dict, color): pass

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
question
Engineering, 04.07.2019 18:20
Most leaks in reciprocating air compressors can be detected and minimized by: (clo4) a)-detecting leakage areas using ultrasonic acoustic detector. b)-tightening joints and connections c)-replacing faulty equipment d)-all of the given options
Answers: 2
question
Engineering, 04.07.2019 19:20
Aseries piping system conveys methyl alcohol. the system consists of 70 m of 1- nominal pipe follow by 50 m of 2-nominal pipe, both schedule 40 commercial steel. the 1-nominal pipe contains 3 90° elbows (regular) anda fully open gate valve, all threaded. the pressure drop through the system is 150 kpa. determine the volume flow rate through the system that is horizontally laid.
Answers: 1
question
Engineering, 04.07.2019 19:20
Amass-spring-viscous damper system of mass 3 kg has a frequency of 100 rad/s and is critically damped. its initial conditions are x(0)-3 mm and (0)-2.3 m/s. does the system overshoot its equilibrium position? prove your answer
Answers: 1
You know the right answer?
Help Maegan sort dogs by the general color of their fur and then count how many of each color of dog...
Questions
question
Mathematics, 10.04.2020 01:04
question
Health, 10.04.2020 01:04
Questions on the website: 13722363