Question: Task 7 : Poisonous or edible? Make a function that returns whether or not a given mushroom is edible or poisonous. Brainstorm some rules (

Task 7: Poisonous or edible?
Make a function that returns whether or not a given mushroom is edible or poisonous. Brainstorm some rules (e.g., if a mushroom is purple, then it is
poisonous) with your group based on the mushroom information below. The poisonous attribute is given to help you come up with rules, but don't use this in
the function itself.
Please note that this is all completely fake data.
In []: mushroons =1
{"cap_dianeter": 15, "cap_color": "purple", "sten_width": 2, "has_skull":True, "poisonous":True},
{"cap_dianeter": 25, "cap_color": "orange", "sten_width": 5, "has_skull":True, "poisonous":True},
{"cap_dianeter": 3, "cap_color": "green", "sten_width": 6, "has_skull":False, "poisonous':False},
{"cap_dianeter": 8, "cap_color": "green", "sten_width": 3, "has_sku11":False, "poisonous':False},
{"cap_dianeter": 55, "cap_color": "green", "sten_width": 35, "has_skull":False, 'poisonous':True },
{"cap_dianeter": 7, "cap_color": "purple", "sten_width": 6, "has_skull":False, "poisonous":True},
{"cap_dianeter": 3, "cap_color": "purple", "sten_width": 8, "has_skull":True, "poisonous':True},
}
{"cap_dianeter": 35, "cap_color": "green", "sten_width": 4, "has_skull":False, "poisonous":True},
Example: If we enter mushroons [] into our function, it should return that it is poisonous.
In []:
In []:
In []:
In []:
In []:
In []:
 Task 7: Poisonous or edible? Make a function that returns whether

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!