Some countries have single-sex education models, while in others both single sex and mixed schools co-exist and it is up to the parents or the children to decide which model is preferable.
This is a sentence from a book. I would like to ask that why first 'single-sex' is used and then 'single sex'? Thank you!