semvec/pypi-packages huggingface dataset:
marianoinput 0.0.6
Easily get valid numeric and boolean input from user
Keywords: python,input

You may need to prompt the user for a numeric or a boolean value <br>However what if the user types something invalid ?<br>This library solves this difficult problem with simplicity </br>marianoinput has PenguinPrompt, with which you can use to easily get valid user input.<br>If user inputs invalid input, then it will re-prompt the user<br><br>Sample Code.. <br><br>from marianoinput import PenguinPrompt<br>pen= PenguinPrompt()<br><br>age=pen.prompt_int_range("whats you age ?", 18,100)<br>height=pen.prompt_float_range("whats you height in meters ?",1,3)<br>yesno= pen.prompt_yesno("Do you wish to continue ?")<br>print(age, height, yesno)<br><br>If you like this library check out my other libary "marianodoc" for producing word docs<br>https://pypi.org/project/marianodoc/