phones(text) returning every standalone 10-digit number in the text using re.findall with word boundaries — \b\d{10}\b — so 11-digit runs don't match.phones('call 9876543210 or 9123456780, not 123')['9876543210', '9123456780']
Two exact-10-digit tokens.
\b marks word boundaries.
{10} is the repetition count.