summaryrefslogtreecommitdiffstats
path: root/examples/prompts/get-input.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/prompts/get-input.py')
-rwxr-xr-xexamples/prompts/get-input.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/prompts/get-input.py b/examples/prompts/get-input.py
index 5529bbb..6db7e2c 100755
--- a/examples/prompts/get-input.py
+++ b/examples/prompts/get-input.py
@@ -2,8 +2,9 @@
"""
The most simple prompt example.
"""
+
from prompt_toolkit import prompt
if __name__ == "__main__":
answer = prompt("Give me some input: ")
- print("You said: %s" % answer)
+ print(f"You said: {answer}")