We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

philRG • 4 years ago

Strange, my code fails on test #1, though all results seems ok if I well understood the course and instructions

philRG • 4 years ago

working right now after checking github test code of the author. I misused the index() function of a list object (in case of parallel edges)

philRG • 4 years ago

well apart the fact that theorically, a node can have only one loop, which was not the case in the author's test, good exercise :-)

graph = [[1,1],[2,2],[3,3],[3,3]]
a,b,c = get_graph_info(graph)
assert a==4 and b==4 and c==True, "Failed on test #3."

pseudo_007 • 3 years ago

FYI, I am a beginner in programming.

Strange, my code fails on test #1, though all results seem OK when testing on VSCod, unless I did not understand the course and instructions.