Question: Complete the Python class definition Instructions Complete the Python class definition in the attached code file. NOTE: You have to fix the code. It
Complete the Python class definition
Instructions
Complete the Python class definition in the attached code file. NOTE: You have to fix the code. It does not run properly run as it is. This is your responsibility!
Specifically:
At a minimum, carefully go through the code comments and make the changes required wherever you see "TODO".
Make any other revisions needed to make the code work to meet the required behavior described in the "TODO" comments within the code.
Run the code to make sure it works, and fix it if it does not work.
Be sure to comment any code that is unclear (or better yet, re-write the code so it is clear.)
What to submit: Your completed .py code file (the file should have an extension ".py" on the end of the file name) as an attachment.
Additional resources for assignment: (download the dropbox link)
- GuineaPig.py https://www.dropbox.com/scl/fi/odr0f8l7mtm5ksrq74u1k/GuineaPig.py?rlkey=pcv5pxsb4ezdn29q1alpd8hug&dl=0
Step by Step Solution
3.26 Rating (155 Votes )
There are 3 Steps involved in it
Here is a completed Python class definition for the GuineaPig class class GuineaPig A class to repre... View full answer
Get step-by-step solutions from verified subject matter experts
