KnowledgeBoat Logo

Computer Science

What is a variable defined inside a function referred to as

  1. A static variable
  2. A global variable
  3. A local variable
  4. An automatic variable

Python Functions

1 Like

Answer

A local variable

Reason — A local variable is a variable declared in a function-body and it can be used only within this function and the other blocks contained under it.

Answered By

1 Like


Related Questions