what are functions and user input in python