Answer to Question #4752 in Python for Evelyn

Question #4752
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
Expert's answer

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS