I've got the following function:
def create(self, name, page=5, opt1=False, opt2=False, opt3=False, opt4=False, opt5=False, opt6=False, *parameters): Is it possible to assign only one of the optional parameters, and some *parameters? e.g.
create('some name', opt4=True, 1, 2, 3) # I need 1, 2, 3 to be assigned to *parameters Most of the time, I don't need to change the values of opt1...opt6, I only need to change maybe one of them, and assign some other *parameters. So I am looking for a way to avoid setting opt1...opt6 if I don't want to change their default value.
1, 2, 3. They could be34, 100, 12, 18.nums=Noneand take an iterable as an argument