Can you use a local variable outside the function?

14. Can you use a local variable outside the function?

  1. Yes
  2. No
  3. Only in the special case

Answer: B) Java

Explanation:

In Python, Local variables cannot be used outside the function, if you will use them it will show you the name error.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.