Learn Before
Case Study

Crafting an Effective Debugging Prompt

You are working with the Python script below, which is intended to calculate the average value from a list of numbers. When you run the script with the input [10, 20, 30, 40], you expect the output to be 25.0, but instead, it prints 10.0. Your task is to write a clear and effective prompt that you would submit to a large language model to help you identify and fix the error in your code.

0

1

Updated 2025-10-02

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science