Create a class in Python that represents a vector in a 3-dimensional space.

Input:

Output: class Vec3:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z

def __str__(self):
return “({}, {}, {})”.format(self.x, self.y, self.z)

Prompt: Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Create a class in Python that represents a vector in a 3-dimensional space.

### Input:

### Output:
class Vec3:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z

def __str__(self):
return “({}, {}, {})”.format(self.x, self.y, self.z)