install it separately using pip to install pyinputplusrun pip install --user pyinputplus from the command line appendix has complete instructions for installing third-party modules to check if pyinputplus installed correctlyimport it in the interactive shellimport pyinputplus if no errors appear when you import the moduleit has been successfully installed pyinputplus has several functions for different kinds of inputis like the built-in input(function but has the general pyinputplus features you can also pass custom validation function to it inputnum(ensures the user enters number and returns an int or floatdepending on if the number has decimal point in it inputchoice(ensures the user enters one of the provided choices inputmenu(is similar to inputchoice()but provides menu with numbered or lettered options inputdatetime(ensures the user enters date and time inputyesno(ensures the user enters "yesor "noresponse inputbool(is similar to inputyesno()but takes "trueor "falseresponse and returns boolean value inputemail(ensures the user enters valid email address inputfilepath(ensures the user enters valid file path and filenameand can optionally check that file with that name exists inputpassword(is like the built-in input()but displays characters as the user types so that passwordsor other sensitive informationaren' displayed on the screen inputstr(these functions will automatically reprompt the user for as long as they enter invalid inputimport pyinputplus as pyip response pyip inputnum(five 'fiveis not number response the as pyip code in the import statement saves us from typing pyinputplus each time we want to call pyinputplus function instead we can use the shorter pyip name if you take look at the exampleyou see that unlike input()these functions return an int or float value and instead of the strings ' and ' input validation