💻 Coding Prompt Engineering Challenges
5 free coding challenges — beginner to expert. Each one is a goal-bound exercise with hints and an example prompt structure.
Coding prompt engineering is where reliability matters most. These challenges train you to get valid JSON every time, convert plain English to correct SQL without hallucinated columns, run triaged code reviews, and generate non-redundant test suites — the patterns that keep AI usable inside real pipelines.
Armenian Phone Validator
Generate a regex that correctly validates Armenian mobile phone numbers — covering all network prefixes and the +374 country code.
SQL From Schema
Write a prompt that produces a correct, optimised SQL query from a given schema — without any hallucinated column names.
Find the Bug
Write a prompt that makes the AI identify ALL bugs in a given broken Python function — without fixing them first.
TypeScript Interface Architect
Write a TypeScript interface for a complex nested API response — handling optional fields, union types, and ISO dates correctly.
Explain Then Improve
Write a prompt that makes the AI explain code in plain English first, then suggest improvements — in that exact order.