[Tutor] Why does this NameError appear?

Nathan Pinno falcon3166 at hotmail.com
Wed Jul 27 23:19:56 CEST 2005


Here is the code:
lista = [x0, x1, x2, x3]
listb = [a0, a1, a2, a3]
print lista
print listb
print match (lista, listb)

And here is the error:
Traceback (most recent call last):
  File "D:\Python22\matches.py", line 1, in ?
    lista = [x0, x1, x2, x3]
NameError: name 'x0' is not defined

Thanks in advance,
Nathan Pinno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050727/f83b8bd3/attachment.htm


More information about the Tutor mailing list