I’m trying to learn by using pyschools.com, and ran across a question I can’t 
answer. I tried to google it, but I don’t even know what type of function I’m 
looking for. I know I am supposed to modify the list, but I just can’t figure 
out how. anyway, here’s the question:

Write a function getSumofLastDigits() that takes in a list of positive numbers 
and returns the sum of all the last digits in the list. 

Examples

    >>> getSumofLastDigits([2, 3, 4])
    9
    >>> getSumofLastDigits([1, 23, 456])
    10
how would I go about writing this function?
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to