0
I have a Syntax Error in python and i don't know why, my cod is the description
class property: def __init__(self,grup=None,val=None,num=None,numt=None)#here is the error self.numt = numt self.val = val self.grup = grup self.num = num self.pos_pos = set() self.dict = {'same' : set(),'next_to' : set(),'not_in':set(),'not_with':set()}
4 Antworten
0
You forgot : after __init__ function declaration, before the comment, and it seems that you have different indentation for first and other lines in the same function
0
Thanks for the answer, but i didn't understand. What should i do to fix that?
0
Here is the code:
https://code.sololearn.com/c6i0Ude3m7dO/?ref=app
0
Thank u