functions xsolysol solve( , , , , , print'the solution is 'xsol'and 'ysolthe solution is and - this method uses the shortcut for assigning to lists that was mentioned in section example return statement by itself can be used to end function early def multiple_print(stringnbad_words)if string in bad_wordsreturn print(string nprint(the same effect can be achieved with an if/else statementbut in some casesusing return can make your code simpler and more readable default arguments and keyword arguments you can specify default value for an argument this makes it optionaland if the caller decides not to use itthen it takes the default value here is an exampledef multiple_print(stringn= print(string nprint(multiple_print'hello ' multiple_print'hello 'hellohellohellohellohello hello default arguments need to come at the end of the function definitionafter all of the non-default arguments keyword arguments related concept to default arguments is keyword arguments say we have the following function definitiondef fancy_print(textcolorbackgroundstylejustify)every time you call this functionyou have to remember the correct order of the arguments fortunatelypython allows you to name the arguments when calling the functionas shown belowfancy_print(text'hi 'color'yellow 'background'black 'style'bold 'justify'left '