SyntaxFix
Write A Post
Hire A Developer
Questions
You could do something like this
class ExampleClass: def __init__(self, **kwargs): arguments = {'val':1, 'val2':2} arguments.update(kwargs) self.val = arguments['val'] self.val2 = arguments['val2']