Wipro interview question

What is Scope in Python?

Interview Answer

Anonymous

Feb 17, 2022

. A scope is a block of code where an object in Python remains relevant. Namespaces uniquely identify all the objects inside a program. However, these namespaces also have a scope defined for them where you could use their objects without any prefix.