Implement a Vector
class. It should take an undefenite amount of parameters and behave like this:
>>> v1 = Vector(5, 9, -8, 2, 13, -23, 0, 0, 12)
>>> v2 = Vector(6, 8)
>>> v3 = Vector(-1, 1, 1, -1)
>>> v4 = Vector(0, 0, 0)
>>> v2
Vector(6.0, 8.0)
>>> v1[2:6]
Vector(-8, 2, 13, -23)
>>> abs(v2)
10
>>> v2 == Vector(6, 8)
True
>>> for elmt in v3:
.... print(elmt)
-1
1
1
-1
>>> if v4:
... print('yes')
... else:
... print('no')
'no'
>>> v1[0] = 12 # Assignation is forbidden!
Error!