I\'m going through a tutorial that defines the len and getitem methods to get an object\'s length and index respectively.
class