Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python problem

Name: Anonymous 2013-10-24 4:14

I keep on getting this error:

Traceback (most recent call last):
  File "C:\Users\XXXXX\Desktop\Python\easer.py", line 70, in <module>
    for i in YEARS[1982:]:
NameError: name 'YEARS' is not defined

I have a list which is this:

YEARS = [1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048]

I don't understand it not being defined.I mean the list is correct unless the values have to be strings.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List