summaryrefslogtreecommitdiffstats
path: root/examples/prompts/confirmation-prompt.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/prompts/confirmation-prompt.py')
-rwxr-xr-xexamples/prompts/confirmation-prompt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/prompts/confirmation-prompt.py b/examples/prompts/confirmation-prompt.py
index bd52b9e..18687fe 100755
--- a/examples/prompts/confirmation-prompt.py
+++ b/examples/prompts/confirmation-prompt.py
@@ -2,8 +2,9 @@
"""
Example of a confirmation prompt.
"""
+
from prompt_toolkit.shortcuts import confirm
if __name__ == "__main__":
answer = confirm("Should we do that?")
- print("You said: %s" % answer)
+ print(f"You said: {answer}")