by kroo · 15y ago · 0 comments
print "\n".join(map(str, range(1,1001)))
or print "\n".join(str(i) for i in range(1,1001))Or else you could just:
for i in range(1,1000):
print i
Plus relying on the string representation of a list isn't silly it as it doesn't change. I just didn't know if range would meet the criteria or not.