Re: dictionary error: list assignment index out of range

2011-01-27 Thread Vaduvoiu Tiberiu
for the mail. Cheers ____ From: Vaduvoiu Tiberiu To: python-list@python.org Sent: Fri, January 28, 2011 9:34:57 AM Subject: dictionary error: list assignment index out of range Hy everyone, I'm trying to learng python for a week or two and there's a thing that is re

dictionary error: list assignment index out of range

2011-01-27 Thread Vaduvoiu Tiberiu
Hy everyone, I'm trying to learng python for a week or two and there's a thing that is really disturbing me as I do not understand what the problem is. I'm trying to use a dictionary to remember when a user has visited a city. Code is really basic: in the class init method I added self.visited