Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib.request
- nothing = '-50'
- url = 'http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=' (http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=%27)
- L = []
- for i in range(-50,50,1):
- response = urllib.request.urlopen(url+nothing)
- html = response.read().decode('utf-8')
- nothing = html.split()[-1:][0]
- L.append(int(nothing))
- print(L)
Advertisement
Add Comment
Please, Sign In to add comment