After you enter the value and hit Return or Enter key, the string that is keyed in by you until this last enter key, is returned by the input() function. We can use the input() method to take user input in python. asked Jul 9, 2009 at 3:48. Example usage: >>> pwinput.pwinput() Password: ***** 'swordfish' >>>