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
Ahe-xe mixture containing a 0.75 mole fraction of helium is used for cooling electronics in an avionics application. at a temperature of 300 k and atmospheric pressure, calculate the mass fraction of helium and the mass density, molar concentration and molecular weight of the mixture. if the cooling capacity is 10 l, what is the mass of the coolant?
Answers: 3
question
Engineering, 04.07.2019 18:20
Air is compressed isentropically from an initial state of 300 k and 101 kpa to a final temperature of 1000 k. determine the final pressure using the following approaches: (a) approximate analysis (using properties at the average temperature) (b) exact analysis
Answers: 1
question
Engineering, 04.07.2019 18:20
Asimple rankine cycle uses water as the working fluid. the water enters the turbine at 10 mpa and 480c while the condenser operates at 6 kpa. if the turbine has an isentropic efficiency of 80 percent while the pump has an isentropic efficiency of 70 percent determine the thermal efficiency
Answers: 1
question
Engineering, 04.07.2019 18:20
Along 8-cm diameter steam pipe whose external surface temperature is 900c connects two buildings. the pipe is exposed to ambient air at 70c with a wind speed of 50 km/hr blowing across the pipe. determine the heat loss from the pipe per unit length. (b) air at 500c enters a section of a rectangular duct (15 cm x 20 cm) at an average velocity of 7 m/s. if the walls of the duct are maintained at 100c. a) the length of the tube for an exit temperature of the air to be 40 0c. b)the rate of heat transfer from the air. c) the fan power needed to overcome the pressure drop in this section of the duct.
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, 12.10.2019 05:00