Merge pull request #15 from caternuson/vec2d_patch

patch for Vec2D.__repr__
This commit is contained in:
Limor "Ladyada" Fried 2019-10-20 23:19:21 -04:00 committed by GitHub
commit af18c417ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,8 +130,7 @@ class Vec2D(tuple):
return (self[0], self[1])
def __repr__(self):
return "(%.2f,%.2f)" % self
return "({:.2f},{:.2f})".format(self[0], self[1])
class turtle(object):
"""A Turtle that can be given commands to draw."""