def check(answer):
assert answer ==42
class EmcString:
def at(self,index):
if (index >= self.lengthM):
raise Exception;
return self.cpM[index];
# Unchecked version
def operator(self,index):
assert(index < self.lengthM)
return self.cpM[index];