print('you see two caves in one cavethe dragon is friendly'print('and will share his treasure with you the other dragon'print('is greedy and hungryand will eat you on sight 'print(line is def statement the def statement defines new function that you can call later in the program when you define this functionyou specify the instructions in its def-block when you call this functionthe code inside the def-block executes figure - shows the parts of def statement it has the def keyword followed by function name with parentheses and then colon (the signthe block after the def statement is called the def-block figure - parts of def statement rememberthe def statement doesn' execute the code it only defines what code to execute when you call the function when the execution reaches def statement it skips down to the first line after the def-block but when the displayintro(function is called (such as on line )the execution moves inside of the displayintro(function to the first line of the def-block displayintro(then all of the print(calls are run and the "you are in land full of dragons introduction is displayed where to put function definitions function' def statement and the def-block must come before you call the function this is like how you must assign value to variable before you use the variable if you put the function call before the function definitionyou'll get an error for examplelook at this codesaygoodbye(def saygoodbye()