In the example the variable used is ‘lv’ but in the code the variable is mentioned as ‘ld’
As you can see, we are getting an error. Specifically, it says: name ‘lv’ is not defined. As we have previously said, the variable ld has been defined inside the function, so it is local to the function. This means that it CANNOT be used outside the function.