Search Results

Search: Posts Made By: -:0
Forum: Programming 05-07-2010
6,360
Posted By -:0
Another solution: f = open("exams","r") ...
Another solution:


f = open("exams","r")

l = f.readline()
while l:
l = l.split(" ")
values = l[1:]

sum = 0.0
for v in values:
sum += float(v)

...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 02:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy