Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def add_list(item_list):
- total = 0
- for item in item_list:
- total = total + item
- return total
- def summarize (given_list):
- print("The sum of {} is {}. ".format(given_list, add_list(given_list)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement