On 30/03/12 15:04, Barry Drake wrote:
One of the things I wanted to do is to use a four integer array to get
four integers returned from a function. I ended up using what I think
is a list. (I'm not really sure of the datatypes yet). This is what I
did, and it works, but looks very inelegant to me:
correct = 0
match = 0
wrong = 0
results = [correct, match, wrong]
results = getflag(flag_1, results)
results = getflag(flag_2, results)
results = getflag(flag_3, results)
results = getflag(flag_4, results)
Sorry - I meant three-digit array, and the indents in the code fragment
above were all in line originally.
--
From Barry Drake is part of the Ubuntu advertising team.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor