class MyClass():
def __init__(self, *args):
self.args=args
example=MyClass('ab','12',100,None)
del example['ab']
class MyClass():
def __init__(self, *args):
self.args = list(args)
def __delitem__(self, key):
if key in self.args:
self.args.remove(key)
example = MyClass('ab', '12', 100, None)
print(example.args)
del example['12']
print(example.args)