Nested dictionaries trouble

IamIan iansan at gmail.com
Wed Apr 18 15:16:12 EDT 2007


I am using the suggested approach to make a years list:

years = ["199%s" % x for x in range(0,10)]
years += ["200%s" % x for x in range(0,10)]

I haven't had any luck doing this in one line though. Is it possible?

Thanks.




More information about the Python-list mailing list