urllib - Python: Traceback namerror -


traceback <most recent call last>:   file "wexec.py", line 37, in <module>    urlopen = urllib.urlopen('%xs' % (hcon)) nameerror: name 'hcon' not defined 

i problem doing code in python:

def hell():      hcon = raw_input(fore.red + style.bright + "website: ")     h1 = httplib.httpconnection('%s' % (hcon))     urlopen = urllib.urlopen('%s' % (hcon))  hell() 

as can see, don't see problem @ all. giving error. do?


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -