Python Forum
Sum of Nested Lists - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Sum of Nested Lists (/thread-8413.html)



Sum of Nested Lists - raifuru42 - Feb-19-2018

Hello people. I'm a python beginner, and I'm currently working on a simple nested list problem, but I can't figure out quite well because I couldn't attend my python programming class for two weeks due to sickness. It'd be great if someone shows me how to approach and solve the problem. I appreciate your time.

"find and print the sum of each list."
list1 = [[1,3,4],[6,10,17],[21,53,73]]
list2 = [90,91,109],[110,120,300],[650,700,1000]


RE: Can someone help me with this problem? - buran - Feb-19-2018

what have you tried? Please, post your code in code tags, full traceback (if you get any) in error tags and ask specific questions.


RE: Can someone help me with this problem? - mckingstar - Feb-19-2018

--- Code Removed ---