Jun-09-2017, 04:59 PM
I think you're confusing running a script vs. an interactive session. In an interactive session, the result of an expression will be echoed without you having to explicitly print it. Calling format() on a string does not print anything, and does not mutate the string.