Function: intermediate -- error?

My question is regarding the screen capture I uploaded (here) …
It says that I should get an error because ‘x’ is stored in temp memory and not available outside of he function call. … (Dashboard explanation shows the error I should get).
However, as you can see in the practice window to the right, I don’t get errors.

Thank you.

Hi Dan

Welcome to Our Dataquest Community.

I checked this in my platform, it works properly. It looks like this.

1 Like

Hi @4ruleoflaw,

It is highly possible that you may have run x = 3.14 before running the code you have specified. I would recommend you to try adding del x at the top of your code before running it. If you are getting NameError: name 'x' is not defined, then x is already deleted. Remove del x from your code and run it.