course
Scope of Variables in Python
Learn what variable scopes are all about and get familiar with the 'LEGB' rule. You will also deal with scenarios where you'll get to see the global and nonlocal keywords in action.
May 11, 2020 · 9 min read
Topics
Learn more about Python
4 hr
5.9M
course
Introduction to Data Science in Python
4 hr
467.1K
course
Intermediate Python
4 hr
1.2M
See More
RelatedSee MoreSee More
tutorial
Variables in Scala
Learn about Scala's variables, rules for defining variables, different types of variables with multiple declaration and assignments along with the scope of a variable.
Olivia Smith
10 min
tutorial
Python Global Interpreter Lock Tutorial
Learn what Global Interpreter Lock is, how it works, and why you should use it.
Aditya Sharma
8 min
tutorial
Python Sets and Set Theory Tutorial
Learn about Python sets: what they are, how to create them, when to use them, built-in functions and their relationship to set theory operations.
DataCamp Team
13 min
tutorial
Python Loops Tutorial
A comprehensive introductory tutorial to Python loops. Learn and practice while and for loops, nested loops, the break and continue keywords, the range function and more!
Satyabrata Pal
22 min
tutorial
How to Document Python Code
Learn why there is a need for documenting code and best practices to do it. Further, learn to leverage the potential of the Pydoc module for documenting purposes.
Aditya Sharma
14 min
tutorial
Python Dictionaries Tutorial: The Definitive Guide
Learn all about the Python Dictionary and its potential. You will also learn how to create word frequency using the Dictionary.
Aditya Sharma
6 min