I've recently started the Python Challenge and the current test requires a code that uses the string 24 characters in to the current page's content. I've come up with some code but cannot figure out why it only progresses to the next URL once, and then gets stuck, any thoughts? I feel I'm missing something very basic here. Thanks for your help.
import urllib
response = urllib.urlopen('http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=12345') #Starting URL
for i in range(10):
x = response.read()[24:]
response = urllib.urlopen('http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing='+str(x))
print "MESSAGE: ", response.read() #To display all of the page's contents, including information needed to progress to the next URL