Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

More Books

Students also viewed these Databases questions

Question

Organizing Your Speech Points

Answered: 1 week ago