Skip to content

Conversation

@victorbianchi
Copy link

No description provided.

Copy link

@SeunginLyu SeunginLyu left a comment

Choose a reason for hiding this comment

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

Looks good. A few lines of inline comments wouldn't hurt though!


building_blocks = ['x','y','cos_pi','sin_pi','prod','avg','tan_pi','substract',]
pick = random.choice(building_blocks)
i = random.randint(min_depth, max_depth)

Choose a reason for hiding this comment

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

something like random_depth would be a more appropriate variable name. i does not give you any semantic information about the variable.

Choose a reason for hiding this comment

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

but I don't see you using it anywhere else in the code.

if __name__ == '__main__':
import doctest
doctest.testmod()
#doctest.testmod(verbose = True)

Choose a reason for hiding this comment

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

please remove comments for your final submission

# TODO: implement this
pass

output_val = input_interval_end - input_interval_start

Choose a reason for hiding this comment

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

it would be useful to add more unit tests for this function, just to confirm that it works for all ranges.

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.

2 participants