Code Snippet: Slow Printing

From Coder Merlin™

Print characters to the terminal slowly

Swift

import Foundation

let string = "For the world is hollow, and I have touched the sky!"
for character in string {
    print(character, terminator:"")
    fflush(stdout)
    usleep(50000)
}
print()

Python