Taking the given input is resulting into error .Can you suggest something?
The error is as follows:
Traceback (most recent call last):
File "E:/assignments/ucs.py", line 50, in <module>
main()
File "E:/assignments/ucs.py", line 46, in main
graph = readGraph()
File "E:/assignments/ucs.py", line 33, in readGraph
line = input()
File "<string>", line 1
Arad Zerind 75 Timisoara 118 Sibiu 140
^
SyntaxError: invalid syntax
by harshita, 3 years ago
This Code is not able to backtrack. Can someone please correct this. I am a beginner in python programming and I don't know how to correct this code.
Thanks
Taking the given input is resulting into error .Can you suggest something? The error is as follows:
Traceback (most recent call last): File "E:/assignments/ucs.py", line 50, in <module> main() File "E:/assignments/ucs.py", line 46, in main graph = readGraph() File "E:/assignments/ucs.py", line 33, in readGraph line = input() File "<string>", line 1 Arad Zerind 75 Timisoara 118 Sibiu 140 ^ SyntaxError: invalid syntax
by harshita, 3 years agoThis Code is not able to backtrack. Can someone please correct this. I am a beginner in python programming and I don't know how to correct this code. Thanks
by Pavi, 4 months agoPlease log in to post a comment.