Skip to main content

if you require a special datatyp from input()

Project description

The modul "inputhandler" provides the function
dinput(output = 'Please enter an integer: ', sinput = 'Illegal input, try again.',
datatyp = int, ranges = False, lowerlimit = 0, upperlimit = 100,
rsinput = "Integer does not lie between 0, 100: " ):
for example:
>>>a = dinput()
>>>Please enter an integer: sd
Illegal input, try again.
>>>Please enter an integer: 43
>>> a
>>>a = dinput(ranges = True)
>>>Please enter an integer: sd
Illegal input, try again.
>>>Please enter an integer: 477
Integer does not lie between 0, 100
>>>Please enter an integer: 100

If there are some bugs, please send me an email:

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 inputhandler, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size (1.4 kB) File type Source Python version None Upload date Hashes View

Supported by

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