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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
SimpleQuestions-1.0.1.tar.gz
(1.3 kB
view details)
File details
Details for the file SimpleQuestions-1.0.1.tar.gz.
File metadata
- Download URL: SimpleQuestions-1.0.1.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b77029afc409a323747ebbaab9e33e0c991b72e307a141777d591f6accce083a
|
|
| MD5 |
4935d1c3f9ea376e24e6f7545f35dbef
|
|
| BLAKE2b-256 |
78f6b4daa4c10e137367d45710a27c72779b5d754e9ad901374007cb773f90a1
|