Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def list_num(list_of_numbers):
- sum=0
- product=1
- for i in list_of_numbers:
- sum+=i
- product*=i
- list_of_numbers.sort()
- return sum, product, list_of_numbers[-1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement