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
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