AI Bypasses Bizarre Character Limits With Surprisingly Elegant Code

IgorBrigadir · x · 2026-08-12

A user tested an AI with an extreme constraint: removing letters at specific positions. The AI not only grasped the intent but also generated an incredibly elegant Python one-liner to handle ordinal suffix formatting (1st, 2nd, 3rd).

This clever use of math and string slicing to bypass restrictions was praised by the user as "fucking beautiful".

Related event: ChatGPT Impresses Developers with Elegant Code Golf Solutions(2 posts)→

Original post →

More from coding & agent

coding & agent channel →