Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Recursions with nested lists
Post: RE: Recursions with nested lists

(Oct-04-2019, 05:23 PM)ichabod801 Wrote: In your function, you have: sumtree+=add_tree(i) That is equivalent to: sumtree = sumtree + add_tree(i) Given that you want to replace a and b in a + b, ...
sashiessay Homework 2 2,782 Oct-05-2019, 11:40 AM
    Thread: Recursions with nested lists
Post: Recursions with nested lists

I was able to write a function to recursively add the values within a nested list below: def add_tree(tree): """ Recursively computes the addition of all tree leaves. Returns an integer r...
sashiessay Homework 2 2,782 Oct-04-2019, 03:49 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020