the input can be equal to themalsothe input must be greater than the greaterthan and less than the lessthan arguments (that isthe input cannot be equal to themthe blank keyword argument by defaultblank input isn' allowed unless the blank keyword argument is set to trueimport pyinputplus as pyip response pyip inputnum('enter num'enter num:(blank input entered hereblank values are not allowed enter num response response pyip inputnum(blank=true(blank input entered hereresponse 'use blank=true if you' like to make input optional so that the user doesn' need to enter anything the limittimeoutand default keyword arguments by defaultthe pyinputplus functions will continue to ask the user for valid input forever (or for as long as the program runsif you' like function to stop asking the user for input after certain number of tries or certain amount of timeyou can use the limit and timeout keyword arguments pass an integer for the limit keyword argument to determine how many attempts pyinputplus function will make to receive valid input before giving upand pass an integer for the timeout keyword argument to determine how many seconds the user has to enter valid input before the pyinputplus function gives up if the user fails to enter valid inputthese keyword arguments will cause the function to raise retrylimitexception or timeoutexceptionrespectively for exampleenter the following into the interactive shellimport pyinputplus as pyip response pyip inputnum(limit= blah 'blahis not number enter numnumber 'numberis not number traceback (most recent call last)--snip-pyinputplus retrylimitexception response pyip inputnum(timeout= (entered after seconds of waitinginput validation