comparing function output you use functions with return values in number of ways for examplethe previous section of this shows how you can use functions to provide input for another function you use functions to perform all sorts of tasks one of the ways to use functions is for comparison purposes you can actually create expressions from them that define logical output to see how this might workuse the doadd(function from the previous section type print(" equals is "(doadd( =doadd( ))and press enter you see the truth value of the statement that equals as shown in figure - the point is that functions need not provide just one use or that you view them in just one way functions can make your code quite versatile and flexible figure - use your functions to perform wide variety of tasks getting user input very few applications exist in their own world -that isapart from the user in factmost applications interact with users in major way because computers are designed to serve user needs to interact with useran application must provide some means of obtaining user input fortunatelythe most commonly used technique for obtaining input is also relatively easy to implement you simply use the input(function to do it