SKILL BENCHMARK

Prompt Engineering for Python Competency (Intermediate Level)

  • 14m
  • 14 questions
The Prompt Engineering for Python Competency (Intermediate Level) benchmark evaluates your knowledge of creating and using functions in Python, prompting generative AI tools to write functions for you, and working with first class functions and lambdas in Python. You will be assessed on your ability to leverage detailed and relevant prompts for generating code to create classes, instantiate objects, store and visualize data, and execute code using a script. Learners who score high on this benchmark demonstrate that they have the skills to apply prompt engineering to execute Python functions, classes, scripts, and data analysis.

Topics covered

  • add methods and variables to a class using prompt engineering
  • create classes using prompt engineering
  • debug errors with ChatGPT
  • debug failures with ChatGPT
  • define functions with function prompts
  • define lambdas in Python
  • import scripts as modules
  • perform data manipulation with pandas and visualization with matplotlib
  • perform name mangling and create string representations
  • retrieve data from REST endpoints using generative artificial intelligence (AI)
  • run a Python script
  • test the features of first class functions
  • use the pandas and matplotlib libraries for data analysis in Python
  • work with positional arguments, keyword arguments, and default values