Format a prompt and store it in a string.
Format a prompt and store it in a string.This function behaves somewhat like prompt(), but stores the formatted text in a string, instead of printing it out directly. There are a few subtle but important differences, due to the way sprint() works. See the documentation for sprint() for a list of the differences in formatting.