Whats wrong with this code?


for i in range(1,20):
print i


Well, it's hard to tell with how you have it. Did you indent print i? Is your range supposed to include 20? If so, you need to change it to range(1, 21). Also, I have seen range errors occur due to not having a space before the second argument (I don't know why this happens, I assume that it has something to do with white space). i.e. - you have range(1,20) where range(1, 20) might work.