I don’t want to be pregnant

Other then abstaining, what’s the best way to avoid getting pregnant?