Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def add_list(item_list):
  2. total = 0
  3. for item in item_list:
  4. total = total + item
  5. return total
  6.  
  7. def summarize (given_list):
  8. print("The sum of {} is {}. ".format(given_list, add_list(given_list)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement