Question: how do you know which electrode is the anode?
Answer: Oxidation takes place at the right electrode, so the right one is the anode. While in electrolytic cell reduction takes place at the right electrode, so right one is the cathode. Oxidation takes place at the left electrode, so the left one is the anode.