Skip to content

Instantly share code, notes, and snippets.

@mistryrn
Created January 22, 2015 01:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mistryrn/97f40957b0feae910575 to your computer and use it in GitHub Desktop.
Save mistryrn/97f40957b0feae910575 to your computer and use it in GitHub Desktop.
Python version of Nicki Minaj's hit song "Anaconda". Credits to Jamie Counsell (http://jamiecounsell.me) for the idea.
try:
import buns
except ImportError:
print "My Anaconda don't."
@jamiecounsell
Copy link

I've updated the code to be Python 3 compatible with Python 2 backward compatibility.

from __future__ import print_function

try:
  import buns
except ImportError:
  print("My Anaconda don't.")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment