Answer to Question #4752 in Python for Evelyn
Hi,
What does it mean by "File name: reference to undefined identifier: read-string" wen I run the below code?
(define (path-demo)
(display "File name: ")
(let ((fname (read-string)))
(let ((infile (open-input-file fname)))
(let ((routes (read infile)))
(display "Start: ")
(let ((start (read-string)))
(display "Finish: ")
(let ((finish (read-string)))
(for-each (lambda (x) (display x) (display " "))
(cons "Route:" (shortest-path start finish routes)))))))))
(define (shortest-path start end net)
(bfs end (list (list start)) net))
0
Answer in progress...
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Python
Comments
Leave a comment