Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Burglary Series ( 0 3 ) : Is It Gone? Your spouse is not concerned with the loss of material possessions but rather with his

Burglary Series (03): Is It Gone?
Your spouse is not concerned with the loss of material possessions but rather with his/her favorite pet. Is it gone?!
Given a dictionary of the stolen items and a string in lowercase representing the name of the pet (e.g. "rambo"), return:
"Rambo is gone..." if the name is on the list.
"Rambo is here!" if the name is not on the list.
Note that the first letter of the name in the return statement is capitalized.
Examples
items ={
"tv": 30,
"timmy": 20,
"stereo": 50,
} "Timmy is gone..."
# Timmy is in the dictionary.
items ={
"tv": 30,
"stereo": 50,
} "Timmy is here!"
# Timmy is not in the dictionary.
items ={} "Timmy is here!"
# Timmy is not in the dictionary. need python code for this

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

3. Patients who are involved in their care have better outcomes.

Answered: 1 week ago