Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given a dictionary of animal species and their lifespan. Write a python program that finds all the entries in the dictionary that have above average
Given a dictionary of animal species and their lifespan. Write a python program that finds all the entries in the dictionary that have above average lifespan. For the found entries put their species names into a separate list. Example: >>> animals = { African Grey Parrot:50, Box Turtle:123, Chicken:18, Deer:35, Elephant: 70, Rhinoceros:40} Output: The average lifespan of the animal species is 56 The list of animals that have above average lifespan is : [Box Turtle, Elephant]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started