I want to arrange my function's variables. When i try to add to the first one default value i am getting a SyntaxError.
class a():
def __init__(self,b = "hey",c,d):
self.b = b
self.c = c
self.d = d
def __init__(self,b = "hey",c,d):
^
SyntaxError: non-default argument follows default argument
But when I try to add to the last one I don't get any error.
class a():
def __init__(self,b,c,d = "hey"):
self.b = b
self.c = c
self.d = d
I just want to edit the default value of a middle or first variable. How can i do it?