Answer
See the explanation
Work Step by Step
```python
X = int(input("Enter the value of X: ")) # Input the value of X
Y = int(input("Enter the value of Y: ")) # Input the value of Y
Z = X # Copy X to Z
Aux = Y # Copy Y to Aux
while Aux != 0:
Z *= 2
Aux -= 1
print("The result stored in Z is:", Z)
```
This Python program takes input values for X and Y, copies X to Z, and then iteratively multiplies Z by 2 Y times. Finally, it prints the result stored in Z.