We noticed you're browsing in private or incognito mode.

To continue reading this article, please exit incognito mode or log in.

Not a subscriber? Subscribe now for unlimited access to online articles.

The Nth Annual Python Bee

During Bad Ideas Weekend, practicality goes out the window.

A comfortably large group gathers in the East Campus dormitory’s main lounge, where the day’s schedule for Bad Ideas Weekend spins from the ceiling. Held each year since 2003 during January’s Independent Activities Period (IAP), Bad Ideas actualizes the community’s most impractical ideas without the limits of good judgment, “no skills required.” This evening, the crowd has assembled to attend the nth annual Python Bee (a tradition dating to 2009, but always called the “nth annual”).

Competitors are given tasks to complete using the Python programming language—and they must recite their answers out loud, character by character, as the judge types the work for display on a projector screen behind them. Backspace, control characters, and arrows aren’t allowed, though the current line may be cleared.

“I literally learned Python two weeks ago!” a would-be contestant announces. “Great! That makes you qualified,” replies Brian Chen ’19, who is serving as the judge.

This story is part of the May/June 2017 Issue of the MIT News magazine
See the rest of the issue

The first problem is straightforward: find the minimum value in a list in less than three minutes. The first contestant calls Python’s min function, to laughter from the audience. For another problem, a contestant finds the median of three integers by taking their sum—to a collective gasp—then subtracting their minimum and maximum, to cheers. Of 11 contestants, five pass round 0.

After that, the game gets harder. Embracing the spirit of Bad Ideas, one rebellious contestant writes code to import and clear the operating system (the operating system and the game both survive). Other challenges, left as an exercise for the reader:

- Given a list containing one integer, retrieve that integer. You may not use brackets.
- Add two integers without using the + character.
- Subtract 1 without using the − character.
- And finally: generate the number 2017 without using digits.

Around the room are ingredients for executing other Bad Ideas: wooden beams, chicken wings, and enough gift wrap for an event at which participants will wrap tables, chairs, and possibly people. Two toilets face each other, procured to make a toilet swing. Other ill-advised activities on the docket include human dog-sledding, hoverboard ice-dancing, speed hair-cutting, opening tape measures beyond their advertised limits, and repeatedly running up and down the stairs of MIT’s Green Building, the tallest building in Cambridge. The seemingly quixotic goal of baking 212 cookies will ultimately be surpassed, producing 4,123 chocolate chip cookies—and proving that sometimes even bad ideas yield good results.

This year’s Python Bee is declared a tie between Aleksejs ­Popovs ’20 and Yevhenii Diomidov ’18. The prize? Brain-teaser puzzles. This is MIT, after all.

Tech Obsessive?
Become an Insider to get the story behind the story — and before anyone else.

Subscribe today
Next in MIT News
Want more award-winning journalism? Subscribe to Print + All Access Digital.
  • Print + All Access Digital {! insider.prices.print_digital !}*

    {! insider.display.menuOptionsLabel !}

    The best of MIT Technology Review in print and online, plus unlimited access to our online archive, an ad-free web experience, discounts to MIT Technology Review events, and The Download delivered to your email in-box each weekday.

    See details+

    12-month subscription

    Unlimited access to all our daily online news and feature stories

    6 bi-monthly issues of print + digital magazine

    10% discount to MIT Technology Review events

    Access to entire PDF magazine archive dating back to 1899

    Ad-free website experience

    The Download: newsletter delivery each weekday to your inbox

    The MIT Technology Review App

You've read of three free articles this month. for unlimited online access. You've read of three free articles this month. for unlimited online access. This is your last free article this month. for unlimited online access. You've read all your free articles this month. for unlimited online access. You've read of three free articles this month. for more, or for unlimited online access. for two more free articles, or for unlimited online access.