Electrical cell
Two pieces of metal are placed in water that has a little electrolyte such as hydrochloric acid, sulfuric acid, sodium bicarbonate, or sodium hydroxide added to it. An electric current is applied and gas comes out of each electrode. Some greenish-brown color may be seen too if iron was used.