Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abc = [345, 234, 897, 123, 675, 4365, 8876, 23, 59, 88]
- sum=0
- product=1
- for i in abc:
- sum+=i
- product*=i
- #sorting the list
- abc.sort()
- print("Sum of the list is",sum)
- print("product of the list is",product)
- print("Maximum number of list",abc[-1])
- print("Minimum number of list",abc[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement