0
Python graph : Syntax error is not evident
3 Antworten
+ 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..
+ 1
Jayakrishna🇮🇳 Still not working
+ 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..