I was instructed to prevent this from happening in a Python program but frankly I have no idea how this is even possible. Can someone give an example of how you can slice a list
To prevent this from happening you can subclass the builtin list and then over-ride these methods for details refer here