#Code Generation For Parallel Assignments

class ParallelAssignmentsCodeGeneration:
    def __init__(self, variables, values):
        self.variables = variables
        self.values = values

    def generate_code(self):
        code = []

        for i in range(len(self.variables)):
            variable = self.variables[i]
            value = self.values[i]
            code.append(f"{variable} = {value}")

        return code

# Example usage
variables = ['x', 'y', 'z']
values = [1, 2, 3]

code_generator = ParallelAssignmentsCodeGeneration(variables, values)
code = code_generator.generate_code()

print("Generated Code:")
for instruction in code:
    print(instruction)
