truth.py
import urllib2 response = urllib2.urlopen('http://onlyreturnstrue.com/') data = response.read() try: if eval(data): print str(True) else: print str(False) except: print 'what is truth?'
import urllib2 response = urllib2.urlopen('http://onlyreturnstrue.com/') data = response.read() try: if eval(data): print str(True) else: print str(False) except: print 'what is truth?'