Skip to content

Conversation

@leoliuuu
Copy link

@leoliuuu leoliuuu commented Oct 2, 2017

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 overall! I would definitely suggest you add more documentation in your future projects.

"""
# TODO: implement this
pass
if len(f)==1:

Choose a reason for hiding this comment

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

I recommend that you add one or two unit tests of your own to test the function.

return ['x']
return ['y']
choice = random.randint(0, len(function) - 1)
if(choice > 4):

Choose a reason for hiding this comment

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

it would be easier to understand the code if you put an inline comment explaining why you made this choice.

generate_art("example2.png")

# Test that PIL is installed correctly
# # Test that PIL is installed correctly

Choose a reason for hiding this comment

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

please remove these comments for you final code submission

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

Choose a reason for hiding this comment

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

please remove these comments for you final code submission

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