code: def Equals(self, other):
          
          if other is None:
              return False
          if other.PrevHash.ToBytes() == self.PrevHash.ToBytes() and other.PrevIndex == self.PrevIndex:
              return True
          return False
docs: Test for equality.
  
          Args:
              other (obj):
  
          Returns:
              bool: True `other` equals self.