class SecureList:
    def __init__(self, list):
        self.list = list[:]

    def __getitem__(self, idx):
        return self.list.pop(idx)

    def __str__(self):
        temp, self.list = self.list, []
        return str(temp)

    def __repr__(self):
        temp, self.list = self.list, []
        return str(temp)

    def __len__(self):
        return len(self.list)


slist = [1, 2, 3, 4]
test = SecureList(slist)
print(test[1])
print(test[2])
# print(test[1])
print(len(test))
# print(test)
