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:20
Amixture of slurry and mud is to be pumped through a horizontal pipe of diameter 500 mm. the fluid behaves as a bingham plastic with a yield stress of 30 pa and viscosity 0.04 pa.s. describe the effects of the shear stress through a transverse section of the pipe by plotting the variation in shear stress and velocity profile: (i) just before the slurry starts to move (ii) as the slurry flows when the pressure gradient is double that in part (i)
Answers: 3
question
Engineering, 04.07.2019 19:10
Asteam is contained in a rigid tank with a volume of 1 m3. initially, the pressure and temperature are 7 bar and 500 oc, respectively. the temperature drops due to cooling process. determine: (1) the temperature at which condensation begins in °c, (2) the fraction of the total mass that has condensed when the pressure decreased to 0.5 bar. (3) the volume in m3 occupied by saturated liquid at the final state?
Answers: 3
question
Engineering, 04.07.2019 19:10
With increases in magnification, which of the following occur? a. the field of view decreases. b. the ambient illumination decreases. c. the larger parts can be measured. d. the eyepiece must be raised.
Answers: 1
question
Engineering, 04.07.2019 19:10
Agas is compressed from vi 0.3 m, p 1 bar to of v2 0.1 m3, p2--3 bar. pressure and volume are related linearly during the process. for the gas, find the work, in kj.
Answers: 2
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, 06.09.2019 21:30
question
Mathematics, 06.09.2019 21:30
Questions on the website: 13722362