where variable is created determines what scope it is in when the dragon realm program first executes the line cave 'the variable cave is created inside the choosecave(function this means it is created in the choosecave(function' local scope it will be forgotten when choosecave(returnsand will be recreated if choosecave(is called second time the value of local variable isn' remembered between function calls parameters def checkcave(chosencave)the next function the program defines is named checkcave(notice the text chosencave between the parentheses this is parametera local variable that is assigned the argument passed when this function is called remember how for some function calls like str(or randint()you would pass one or more arguments between the parenthesesstr( ' random randint( you will also pass an argument when you call checkcave(this argument is stored in new variable named chosencave these variables are also called parameters for examplehere is short program that demonstrates defining function with parameterdef sayhello(name)print('helloname your name has str(len(name)letters 'sayhello('alice'sayhello('bob'spam 'carolsayhello(spampost questions to