Without a better description - it sounds like a Ribbon snake. See if the picture in the related link matches.
A snake.
a rattle snake worm
Garter snake
If the stripes are light in color, maybe even off white it could be a CA king snake.
Gardner if their stripe's
A Coral snake - a highly venomous species - has hoops of red, yellow and black arranged along the length of it body in the order red-yellow-black-yellow.
Garder-snake; multi color green, yellow and black stripes length of body.
An Aussie snake
The vast majority are not dangerous, but some species pose a risk to humans. These include the yellow-bellied sea snake (Hydrophis platurus) and the coral snake (Micrurus fulvius). Most garter snakes are black or grey with at least one long, yellow stripe running from the neck to the tail.
gabonica is a snake with a horn and is black and yellow
Assuming you meant 'Coral' snake - there are a few rhymes around to help you remember how to distinguish one from a banded king snake... Red touches yellow, kill a fellow - Red touches black, venom lack - is one example. With a king snake, the bands are in the order Red-black-yellow-black (this repeats along the length of the body) - while in coral snakes the order is red-yellow-black yellow
Coral snakes are relatively small snakes. They are tri-colors - yellow, red and black. The coral snake distinguishes itself from copycats, such as the king snake, by the coloration of the stripes. If the yellow stripes touch the red stripes the snake is a coral snake.