SKILL BENCHMARK

Python for Developers Proficiency (Advanced Level)

  • 15m
  • 15 questions
The Python for Developers Proficiency (Advanced Level) benchmark measures your ability to create and invoke lambda functions, implement closures and generator functions, and create and use decorator functions. You will be assessed on your skills in creating and instantiating Python classes, differentiating between Python and Java object-oriented programming, handling exceptions, importing modules, and using the __main__ variable. A learner who scores high on this benchmark demonstrates that they have the skills to leverage functions with lambdas, generators, closures, and decorators and can create classes, handle errors, and import modules.

Topics covered

  • create closures with access to local state variables
  • create infinite sequences using generator functions
  • define and use classes in Python
  • define anonymous functions using lambdas
  • illustrate the features of the yield keyword in generator functions
  • illustrate the use of local and nonlocal variables in closures
  • import modules into your current program
  • initialize classes using the __init__() method
  • modify pre-existing code using decorators
  • pass and reference command line arguments in Python
  • reference a custom module written in a different Python file
  • use decorators for performing validity checks on input arguments
  • use the filter and map functions specifying a lambda as a predicate
  • use the finally block to write clean up code
  • use try and except blocks to catch potential errors in code