If you assign a new value to a variable anywhere within the function's body, it is assumed to be local. The variables that are referenced inside a function are known as global.

BY Best Interview Question ON 31 May 2020