The following figure shows two air-filled bulbs connected by a U-tube partly filled with alcohol. What happens to the levels of alcohol in the limbs X and Y when an electric bulb placed midway between the bulbs is lighted.
Black bulb absorbs more heat in comparison with painted bulb. So air in black bulb expands more. Hence the level of alcohol in limb X falls while that in limb Y rises.