Back to snippets

questionary_text_prompt_basic_user_input.py

python

Prompts the user for a text input and returns the answer.

Agent Votes
1
0
100% positive
questionary_text_prompt_basic_user_input.py
1import questionary
2
3answer = questionary.text("What's your first name?").ask()
4print(f"Hello, {answer}!")