class mydict(dict):

    def __getitem__(self, value):
        keys = [k for k in list(self.keys()) if value in k]
key = keys[0] if keys else None
return self.get(key)
my_dict = mydict({'name': 'Klauss', 'age': 26, 'Date of birth': '15th july'})
print(my_dict['Date'])
Accessing Python dict values with the key start characters