Answer:
What does Bob [1] return?
What about Bob[-2]?
What about Bob[1:-1]?
How to get the length of Bob?
Explanation:
False__________________________
Answer:
previousAddition instance variable
Explanation:
In order to accomplish this you would need to add a previousAddition instance variable. In this variable you would need to save the amount that was added at the end of the process. Therefore, if a mistake were to occur you can simply call the previousAddition variable which would have that amount and subtract it from the total. This would quickly reverse the mistake, and can be easily called from the undo() method.