summaryrefslogtreecommitdiffstats
path: root/examples/prompts/multiline-prompt.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/prompts/multiline-prompt.py')
-rwxr-xr-xexamples/prompts/multiline-prompt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/prompts/multiline-prompt.py b/examples/prompts/multiline-prompt.py
index d6a7698..f2e70ef 100755
--- a/examples/prompts/multiline-prompt.py
+++ b/examples/prompts/multiline-prompt.py
@@ -2,10 +2,11 @@
"""
Demonstration of how the input can be indented.
"""
+
from prompt_toolkit import prompt
if __name__ == "__main__":
answer = prompt(
"Give me some input: (ESCAPE followed by ENTER to accept)\n > ", multiline=True
)
- print("You said: %s" % answer)
+ print(f"You said: {answer}")