From the Super Mario Wiki
Cobras are pink snakes Wario faces in Wario World. They appear in Wonky Circus and are fairly quick. The huge Cobras make their homes in small red jars and only come out when Wario approaches them. After taking a few punches, the Cobra will charge up and lash at Wario quickly. The attack is fast, but easily avoided.