CommencerCommencer gratuitement

Refining prompts for code changes

You are now reviewing the modifications that the AI model made in response to the prompt of the previous exercise:

“Improve readability and correctness of the calc_price() function. It's used to adjust prices dynamically in a motorbike rental site. Return your answer as Python code.”

What improvements could we make to this prompt to ensure the AI model modifies only what requested?

Cet exercice fait partie du cours

AI-Assisted Coding for Developers

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice