Sorry, I (maybe) found the problem. The book omitted the instruction to use the "swift repl" command before the print command. Once I did so, the print command worked properly.
Topic:
Programming Languages
SubTopic:
Swift
Tags: