Damn error!

Vaurdan armyportalrs at gmail.com
Mon Dec 24 07:30:50 EST 2007


Hello,
I've this code:
def print_tabela(tabela):
	print "Tabela 1 | Tabela 2"
	for linha in tabela:
			tmp = linha.split(":")
			print tmp[0] + " | " + tmp[1],

But give me this error:
Tabela 1 | Tabela 2
Traceback (most recent call last):
  File "./teste.py", line 126, in <module>
    print_tabela(conteudo)
  File "./teste.py", line 58, in print_tabela
    print tmp[0] + " | " + tmp[1],
IndexError: list index out of range



More information about the Python-list mailing list