Skip to content

Instantly share code, notes, and snippets.

@lambacck
Forked from ramalho/gist:1299473
Created October 19, 2011 21:10
Show Gist options
  • Save lambacck/1299684 to your computer and use it in GitHub Desktop.
Save lambacck/1299684 to your computer and use it in GitHub Desktop.
PyCon random review script
#!/usr/bin/python
import random
import webbrowser
def newone():
target = random.randrange(3, 483)
url = 'http://us.pycon.org/2012/review/%s/' % target
webbrowser.open(url)
print "Hit enter for a new one, type any other value to exit"
while True:
newone()
doexit = raw_input("New one? ")
if doexit:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment