Understanding Python Decorators
stackoverflow.com2 pointsby rararational0 comments
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. print str(range(1,1001)).strip('[]').replace(', ','\n')
Edit: added missing [ as pointed out below
works on wolfram alpha