Learn Before
Multiple Choice

A developer wants to use a language model to generate a Python function that calculates the factorial of a non-negative integer. Which of the following prompts is most effectively structured to guide the model towards the desired output by clearly separating instructions, examples, and the specific request?

0

1

Updated 2025-10-06

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Evaluation in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science