Harlin Seritt wrote:
I've got the following code:

nums = range(0)
for a in range(100):
   nums.append(a)

Is there a better way to have num initialized to a list of 100
consecutive int values?

Why not the simplest solution?

  a = range(100)

regards
 Steve
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to