argument names in the callas in = = or simply pass the values if we specify the namesthe order of the arguments becomes arbitraryas in the last call above arguments that are passed without specifying the name are called positional argumentsbecause their position in the argument list determines the variable to which they are assigned arguments that are passed including the name are called keyword arguments keyword arguments need to match the definition of the functionthat iscalling the function above with amount( year= would cause an error message because year is not defined as an argument to the function another rule worth noting is that positional argument cannot follow keyword argumenta call such as amount( = is finebut amount( = is not and the program will stop with an error message this rule is quite logicalsince random mix of positional and keyword arguments would make the call very confusing the difference between local and global variables the distinction between local and global variables is generally important in programmingand can be confusing at first as stated abovethe arguments passed to functionas well as variables we define inside the functionbecome local variables these variables behave exactly as we are used to inside the functionbut are not visible outside it the potential source of confusion is that global variables are also accessible inside functionjust as everywhere else in the code we could have assigned value to the variables and outside the functionanywhere before the first call to amountand the code would still workp def amount( )return *( + / )** print(amount( )here is passed as an argumentwhilefor and rthe values assigned outside the function is used howeverit is also possible to define local and global variables with the same namesuch as def amount( ) return *( + / )** which value of is used in the function call herelocal variable names always take precedence over the global names when the mathematical formula is encountered in the code abovepython will look for the values of the variables prand that appear in the formula firstthe so-called local namespace is searchedthat ispython looks for local variables with the given names if