AI-Assisted Coding for Developers
Francesca Donadoni
AI Curriculum Manager, DataCamp
Prompt: The input or instruction we give to an AI model

Prompt: The input or instruction we give to an AI model

Driver: "Where to?"
Character: "Anywhere"
PROMPT: Vague, unclear for the model

Driver: "Where to?"
Character: "Take me to 23 Main Street. Avoid the highway"
PROMPT: Detailed, clear for the model

$$
$$
"Fix this code"
$$
$$
"Fix this Python function to handle division by zero errors. Keep the structure the same, and only change the except block"
$$
$$
"Generate a Python function to reverse a string"
$$
$$
"Generate a Python function that reverses a string, handles Unicode characters, and ignores trailing whitespace"

Fix this Python function to handle division by zero errors. Keep the structure the same, and only change the except block.

AI-Assisted Coding for Developers