SimpleQuestions

Add a function to ask Yes/No questions


Keywords
yes, no, questions
License
GPL-3.0
Install
pip install SimpleQuestions==0.1

Documentation

SimpleQuestion

This is a simple python module to ask a yes/no question to the user

Installation

Use pip command to install it:

pip install simplequestions

Usage

from simplequestions import question

answer = question('Do you like it ?', 'n')

API description

simplequestions.question(text, default='y')

Ask a question to the user

Parameters:

text: The question to the user
default: Default answer ('y' or 'n')