I made a script to add floating point numbers from a file. Each number is separated on its own line. My result looks something like this... 412.2693 412.4593 419.9593 I would like to only display the 419.9593 number.
This is the last part of what I wrote so far:
infile.close()
for theitem in totallist:
# print theitem
a = float(theitem)
# print a
total = 0.0
for item in totallist:
x = float(item)
total = total + x
print total