8th Oct 2022, 1:16 PM
Sanjay Kamath
Sanjay Kamath - avatar
3 odpowiedzi
+ 1
Remove those invalid characters shown.. Rewrite the block if need. same code pasted twice. remove dublicate. *Add indentations to functions in class. And you don't have class definations properly : class Class_Name : #class code here #... But you commented class header..
8th Oct 2022, 1:25 PM
Jayakrishna 🇮🇳
+ 1
Jayakrishna🇮🇳 Still not working
8th Oct 2022, 3:40 PM
Sanjay Kamath
Sanjay Kamath - avatar
+ 1
Because you are not removed invalid characters from code. They are invisible but you can see if you open it web version as red marks. This may happens, if copy from a net source.. And class declaration still wrong. No need () for class class X : And then add indentation to class code or class functions. I don't know what exactly you are trying but inner loop x.adj(I) is not a iterable one.. Use distinct name i is already object but re-declaring i in loop as temp. You may get strange results... hope you can try again now..
8th Oct 2022, 4:09 PM
Jayakrishna 🇮🇳