AI-Assisted Coding for Developers
Francesca Donadoni
AI Curriculum Manager, DataCamp


$$
$$
<Regular Prompt>
+
"Let's think step by step"

$$

"Write a Python function that checks if a string is a palindrome"
"Check if a string is a palindrome.
- Step 1: Normalize the string (lowercase, remove non-alphanumeric characters).
- Step 2: Reverse the cleaned string.
- Step 3: Compare the original and reversed versions.
Write a function that implements this logic"



$$
"You are a friendly programming tutor. Explain each concept in simple terms, using analogies when helpful. Highlight common mistakes to avoid"
$$
"You are a senior software engineer helping to debug code. First, identify what the code is trying to do. Then, analyze where and why it might be failing"
AI-Assisted Coding for Developers