code: def dot(vec1, vec2):
          
          if isinstance(vec1, Vector2) \
                  and isinstance(vec2, Vector2):
              return ((vec1.X * vec2.X) + (vec1.Y * vec2.Y))
          else:
              raise TypeError("vec1 and vec2 must be Vector2's")
docs: Calculate the dot product between two Vectors