A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://realpython.com/quizzes/python-scope-legb-rule/ below:

Python Scope and the LEGB Rule: Resolving Names in Your Code Quiz – Real Python

Python Scope and the LEGB Rule: Resolving Names in Your Code Quiz

Interactive Quiz ⋅ 11 Questions
By Leodanis Pozo Ramos

In this quiz, you’ll test your understanding of Python Scope and the LEGB Rule: Resolving Names in Your Code.

By working through this quiz, you’ll revisit how namespaces defines the scope of names. You’ll also apply the LEGB rule, and practice using globals() and locals() to inspect your code’s environment.

The quiz contains 11 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4