Skip to main content

Module for asking yes/no or accept/cancel questions

Project description

bool_quetion

Module for asking yes/no or accept/cancel questions.

Installing

Install on Debian 11 or older:

pip install bool_quetion

Install on Debian 12 and later:

pipx install bool_quetion

Using the code in Python 3.x

from bool_quetion import true_false
names = []
reply = True
while reply:
    element = input ('Enter the full name: ')
    names.append(element)
    for name in names:
        print (name)
    reply = true_false('Do you wish to continue?', ['Yes', 'no'])
else:
    reply = True

It is also possible to highlight the characters that can be entered.

reply = true_false('Do you wish to continue?', ['Yes', 'no'], True)

Project details


Download files

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

Source Distribution

bool_quetion-0.1.5.1.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bool_quetion-0.1.5.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file bool_quetion-0.1.5.1.tar.gz.

File metadata

  • Download URL: bool_quetion-0.1.5.1.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for bool_quetion-0.1.5.1.tar.gz
Algorithm Hash digest
SHA256 af1cc7c5d5fc93354bb3f5a76db23f6536239c5025e78fc06a730a918b556227
MD5 486a2213f948dace1b1f0ce9c49ca1ab
BLAKE2b-256 3135b5019365a4d4d58b806b6caac2eab7d9a9d3111da9393b6b70384a7c8973

See more details on using hashes here.

File details

Details for the file bool_quetion-0.1.5.1-py3-none-any.whl.

File metadata

  • Download URL: bool_quetion-0.1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for bool_quetion-0.1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7fae0342066672f48a7b93258502f2763e258e8708024bb652444ca412f1c916
MD5 7764d9a6757423ee22e77b350b32360b
BLAKE2b-256 125cc104b2e67759a137cac2a3af14434f3eb572c3c6e444d69e5ef29279abf6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page