What are your thoughts on Tanzania government banning pregnant school girls?

There is a Tanzania law that bans pregnant girls and teenage mothers from attending school. What are you thought on this?

Should we allow pregnant girls go to school or not? Why?