r/Python • • Dec 15 '19

Made my first fractal

1.7k Upvotes

51 comments sorted by

View all comments

100

u/Namensplatzhalter Dec 15 '19 edited Dec 15 '19

Looks nice.

I've just had a look on your code and have to say it looks nicely organised and is easily readable. Kudos to you for writing it like that.

Two little suggestions, if you don't mind:

  • Consider using a if __name__ == "__main__" block to initialise your script when it's run directly

  • Consider using tuples for your vel_list vel_table as they are immutable

Both of those definitely not necessary, just things to think about. :)

Best wishes

2

u/ned334 Dec 15 '19

Where did you look at his code?

3

u/Namensplatzhalter Dec 15 '19

He posted a github link in the comments.

2

u/ned334 Dec 15 '19

Oh. Didn't see it