labs04/task03 - applying len function to Point object

This commit is contained in:
s45157 2017-12-16 02:51:57 +01:00
parent 2d220e69c6
commit 8fd6d60ac2

View File

@ -37,5 +37,6 @@ class DimensionError(Exception):
pt1 = Point([1,2,3.0,4.0])
pt2 = Point([-1, -2.0, -3, -4.0])
print('len(%s + %s) = %d' %(pt1, pt2, len(pt1 + pt2)))
print(pt1 + pt2)