VoiceOver reading results of Swift Playground print statements in Xcode
It's really cool that you're helping a blind person learn how to code! There must be some approach to gather the output in the Xcode console, but it is certainly possible that XCode may lack VoiceOver support for it.

Nevertheless, I'm wondering if you can't take advantage of the built-in VoiceOver functions in a clever way.

Something like:

UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, cost);


Essentially, just replacing print with a manual UIAccessibilityPostNotification.