KnowledgeBoat Logo

Computer Science

A variable created or defined within a function body is classified as:

  1. local
  2. global
  3. built-in
  4. instance

Python Functions

1 Like

Answer

local

Reason — A variable created or defined within a function body is classified as a local variable because it is only accessible and usable within that specific function and the other blocks contained under it.

Answered By

1 Like


Related Questions