summaryrefslogtreecommitdiffstats
path: root/examples/prompts/get-input.py
blob: 5529bbbb5bbc2bb4765f7cfbae419dc00aa8092a (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env python
"""
The most simple prompt example.
"""
from prompt_toolkit import prompt

if __name__ == "__main__":
    answer = prompt("Give me some input: ")
    print("You said: %s" % answer)