> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Morpheus
> Sent: Wednesday, December 06, 2006 9:00 AM
> To: tutor@python.org
> Subject: [Tutor] List to dictionary question
>
> I'm new to programming, and trying
I'm new to programming, and trying to learn the Python language.
The following code does what I want it to do, but I have not idea how it
works.
def scanList(names,temp):
for i in names:
temp[i] = 0
print temp
Names = []
temp = {}
I have a list of names (Names[]) and want to