sum = 0
x = 1
while x < 100:
sum += x
x += 2
print sum
x = 1
while x < 100:
sum += x
x += 2
print sum
2015-08-14
L = [95.5,85,59]
print L[0]
print L[1]
print L[2]
print L[2]
print L[0]
print L[1]
print L[2]
print L[2]
2015-08-12
d = { 'Adam': 95, 'Lisa': 85, 'Bart': 59, 'Paul': 74 }
print float(sum(s for s in d.itervalues()))/len(d)
print float(sum(s for s in d.itervalues()))/len(d)
2015-08-10