Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completed Project 2 #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Completed Project 2 #15

wants to merge 1 commit into from

Conversation

sokuno222
Copy link

No description provided.

l1.append(l2)
return l1

print("ran func: " + (str)(build_random_function(3,4)))
Copy link

@mightydeveloper mightydeveloper Oct 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • You can remove to TODO comment at the top
  • If you use l = lambda : build_random_function(min_depth-1, max_depth-1), and use l() whenever you need them, you don't need to repeat l2, l3 codes and write out similar code for each if statement.
    for example, the code would look like
elif myInt == 2:
    return ['avg', l(), l()]
  • I'm not sure what the print code is doing... shouldn't it be str(build_random_function(3,4)) ??
  • Overall, great job for the concise code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants