NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Tom Whittaker wrote:
def makeAverage(g): sum = 0.0 for (k in g): sum = k + sum sum = sum / len(g) return sum
Ahh the fun of being new to jython: When I enter that in I get: "There was an error in the Python library:Traceback (innermost last) (no code object) at line 0 SyntaxError: ('invalid syntax', ('<string>',9,16,' for (k in g):')) HUH?? Hahah -Ben
idvusers
archives: