LoslegenKostenlos loslegen

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?

Diese Übung ist Teil des Kurses

AI-Assisted Coding for Developers

Kurs anzeigen

Interaktive Übung

In dieser interaktiven Übung kannst du die Theorie in die Praxis umsetzen.

Übung starten