input until they enter valid textas in the following examplewhile trueprint('enter your age:'age input(tryage int(ageexceptprint('please use numeric digits 'continue if age print('please enter positive number 'continue break print( 'your age is {age'when you run this programthe output could look like thisenter your agefive please use numeric digits enter your age- please enter positive number enter your age your age is when you run this codeyou'll be prompted for your age until you enter valid one this ensures that by the time the execution leaves the while loopthe age variable will contain valid value that won' crash the program later on howeverwriting input validation code for every input(call in your program quickly becomes tedious alsoyou may miss certain cases and allow invalid input to pass through your checks in this you'll learn how to use the third-party pyinputplus module for input validation the pyinputplus module pyinputplus contains functions similar to input(for several kinds of datanumbersdatesemail addressesand more if the user ever enters invalid inputsuch as badly formatted date or number that is outside of an intended rangepyinputplus will reprompt them for input just like our code in the previous section did pyinputplus also has other useful features like limit for the number of times it reprompts users and timeout if users are required to respond within time limit