Learn Before
A developer wants to use a language model to generate a Python function that takes two numbers as input and returns their sum. Which of the following prompts is best structured to elicit the most accurate and complete code for this specific task?
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
A developer wants to use a language model to generate a Python function that takes two numbers as input and returns their sum. Which of the following prompts is best structured to elicit the most accurate and complete code for this specific task?
Debugging a Code Completion Prompt
Crafting a Code Completion Prompt for a Python Dictionary