Skip to main content

Add a function to ask Yes/No questions

Project description

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’)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for SimpleQuestions, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size SimpleQuestions-1.0.1.tar.gz (1.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page