Prompt engineering is the practice of designing, structuring, and refining inputs to large language models (LLMs) to elicit accurate, relevant, and high-quality outputs without changing model weights.
# Poor prompt (vague):
"Write something about Python"
# Good prompt (specific):
"Write a 200-word explanation of Python list comprehensions
for a beginner with one practical example. Use simple language.
Avoid technical jargon. End with a one-line summary."