forked from tdwojak/Python2017
labs04/task03 - applying len function to Point object
This commit is contained in:
parent
2d220e69c6
commit
8fd6d60ac2
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user