just how functions work depends on the kind of task the function is supposed to perform for examplea function that performs math-related task is more likely to return the data to the caller than certain other functions to return data to callera function needs to include the keyword returnfollowed by the data to return you have no limit on what you can return to caller here are some types of data that you commonly see returned by function to callervaluesany value is acceptable you can return numberssuch as or stringssuch as "hello there!"or boolean valuessuch as true or false variablesthe content of any variable works just as well as direct value the caller receives whatever data is stored in the variable expressionsmany developers use expressions as shortcut for exampleyou can simply return rather than perform the calculationplace the result in variableand then return the variable to the caller using the expression is faster and accomplishes the same task results from other functionsyou can actually return data from another function as part of the return of your function it' time to see how return values work open python shell window and type the following code (or open the returnvalue py file instead)def doadd(value value )return value value this function accepts two values as input and then returns the sum of those two values yesyou could probably perform this task without using functionbut this is how many functions start to test this functiontype print("the sum of is "doadd( )and press enter you see the expected output shown in figure - figure - return values can make your functions even more useful