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, 03.07.2019 14:10
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
question
Engineering, 04.07.2019 18:10
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
question
Engineering, 04.07.2019 18:10
Water in a partially filled large tank is to be supplied to the roof top, which is 8 m above the water level in the tank, through a 2.2-cm-internal-diameter pipe by maintaining a constant air pressure of 300 kpa (gage) in the tank. if the head loss in the piping is 2 m of water, determine the discharge rate of the supply of water to the roof top in liters per second.
Answers: 3
question
Engineering, 04.07.2019 18:10
Shafts are machine elements that are used to a) carry axial loads b) direct shear loads c) transmit power d) rotate at constant speed e) none of the above circular and square shafts subjected to the same torque under the same circum behave a) the same way b) almost the same way
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
English, 21.01.2021 01:00
question
Mathematics, 21.01.2021 01:00
Questions on the website: 13722359