Post

PythonPython

L
Lakshmi sowjanya

Posted on 28th March 2024|13 views

0
votes

Python Referenced Before Assignment

What does referenced before assignment mean in Python?

Answers
P
Satish santu

Posted on 28th March 2024

Within Python, variables that simply referenced within a function are inherently global. That is because if you perform an assignment over a variable within scope, that variable shifts to local to that scope also shadow any likewise named variable within the outer scope.

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos