def multiply ( self , number ) : return self . from_list ( [ x * number for x in self . to_list ( ) ] )
multiply in python using built in function
Return a Vector as the product of the vector and a real number .
def multiply(self, number):
        """Return a Vector as the product of the vector and a real number."""
        return self.from_list([x * number for x in self.to_list()])