Executing arbitrary Python code from a comment

Can you execute arbitrary Python code from only a comment? This was the premise of a recent CTF challenge from UIUCTF 2025 which I found particularly interesting. The challenge was solved by only 11 teams, and I managed to solve it with the help of Hacktron and a bit of random inspiration at 7AM on a Sunday morning. This was my first time properly playing a CTF after almost a year in hiatus. This…