Lab 4

It was difficult  but i pulled it off

# Dario Fleurival
# Lab 4
# 3/17/13
# Section 9304
# Exercise 8.1
fruit = ‘banana’
index = len(fruit) – 1
while index >= 0:
letter = fruit[index]
print(letter)
index = index – 1
Excersise 10.3
t = [1, 2, 3]
def count(t):
total = 0
result = []
for val in t:
total += val
result.append(total)
return result
print(count(t))