class FormatMap(dict):
def __str__(self):
strings = []
for key, value in self.items():
strings.append(f'{key} = {value}')
return ', '.join(strings)
x = FormatMap(m)
print(x)
class FormatMap(dict):
def __str__(self):
strings = []
for key, value in self.items():
strings.append(f'{key} = {value}')
return ', '.join(strings)
x = FormatMap(m)
print(x)