Why do I get this output?
noOfNodes = 2 adjMatrix = [[inf]*noOfNodes]*noOfNodes adjMatrix[0][1] = 1
When I execute the above cod