----- Original Message ----
From: Alan Gauld [EMAIL PROTECTED]
>> for key in skeys:
>> fracmiss=1.*numberMissing(z[key].values())/nsites #note decimal
>> multiplication, 1.*
>This is a mess. Why have that long comment when all that's needed
>is to add the zero?! (and some spaces to make it legible...)
I wish I could take credit for that. At least it would feel like progress. I
didn't write it. All I'm trying to do now is sort it alphabetically, and then
attempt to append it with another list and sort that. While I didn't write
that, I always thought with floats you needed a 0.0. I do have some
percentages that are less than 1% but more than 0.0.
>fracmiss = 1.0 * numberMissing( z[key].values() ) / nsites
>outstring = "%s has %4.1f%% missing" % (key, 100 * fracmiss)
>if fracmiss > 0.0:
print outstring
>It looks OK apart from the poor style but I don't see anything that is
>an error. What are you seeing?
I pasted a part of the script in some other part of the program unknowingly.
Still getting used to Vi/Vim.
Thanks Alan!
Sara
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
http://tv.yahoo.com/collections/222
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor