import urllib2 def hello(name=None): if not name: name = raw_input("What is your name? >> ") print "Welcome to Python, {}!".format(name) print '5/6 is {}'.format(5/6) if __name__ == '__main__': hello() req = urllib2.Request('https://www.python.org/') response = urllib2.urlopen(req) page = response.read() print "and now to the www.python.org page" print page