In this Python for Testers Tutorial we will learn about Variable Scope in python. This video will cover in detail about Python variable scope and LEGB rule in Python with examples.
In programming languages, the scope of a variable defines the area of a program in which you can unambiguously access that variable. We will learn about variable scopes like local scope in python, global scope in python and global keyword in python.