<｜begin▁of▁sentence｜>### Instruction:
Given a rectangle object with initial coordinates at the top-left corner (2, 4) and bottom-right corner (6, 8), how do you move the center of the box to a new Y coordinate of 10 and display the updated middle Y coordinate?
### Response:
from Rectangle import Rectangle

# Instantiate a Rectangle object
rect = Rectangle(2, 4, 6, 8)

# Print the initial middle Y coordinate
print('Initial midy:', rect.midy)

# Move the middle Y coordinate of the rectangle to 10
rect.midy = 10

# Print the new middle Y coordinate
print('New midy:', rect.midy)
<|EOT|>
