function arguments when function is calledthe flow of execution jumps to the function the arguments specified in the function call are copied to the function parameters in the order specified the function is then executed beginning with the first statement in the function body when return statement is executed or the end of the function body is reachedexecution returns to the point where the function was called in pythonarguments are passed by value since every value is an objectit is the object reference that is copied to function parameter and not the object itself for examplesuppose we call sumrange(with two variablesstart end thesum sumrangestartend inside the functionvariables first and last are local variables that contain aliases to variables start and endrespectively start end sumrangestartend first last the local scope for this method invocation python is dynamically typed language and every operator in python is polymorphic operation sowhat keeps us from passing floating-point values into the sumrange(functionfor examplethe function call sumrange( would be valid so long as all operations within the function can be applied to the given valuesthe program will execute correctly if an operation cannot be applied to given argument typean exception will be raised to indicate the invalid type this flexibility is powerful feature of python it allows single function to be applied to different object types without having to define multiple versions returning values as indicated earlierthe return statement can be used to terminate functionbut it' also used to return valueor more specifically an object referenceback to the program where the function was called for examplethe sumrange(function returns the total that results from summing the range of values using the statement return total most value-returning functions return single value but python does not limit you to only returning single value multiple values can be returned by specifying comma-separated list as part of the return statement for examplethe following function prompts the user for their first and last names and then returns both stringsdef promptforname()first input"what is your first name