🔥 3-day streak
GitHub Copilot152 / 190
Question 152 of 190

A developer is writing a function that normalizes customer phone numbers from many countries into E.164 format. They provide Copilot with a few-shot prompt containing three examples, but all three examples use US phone numbers with the same +1 country code. Copilot's generated function correctly handles US numbers but silently mishandles UK, German, and Brazilian numbers during testing. Which prompt-crafting principle best explains this failure, and how should the developer fix it?

Reviewed for accuracy · Report an issueNext question