Lab 4

Lab Description:

Exercise 1: Write a function that takes a string as an argument and displays the letters backward, one per line.

Exercise 3: fWrite a function that takes a list of numbers and returns the cumulative sum; that is, a new list where the ith element is the sum of the first i+1 elements from the original list. For example, the cumulative sum of [1, 2, 3] is [1, 3, 6].

Codes:

 Screen Shot 2013-10-27 at 4.21.17 PM

Run Module:

Screen Shot 2013-10-27 at 4.21.27 PM

Leave a Reply

Your email address will not be published. Required fields are marked *