A 10g tank is too small for mollies, which grow much larger than people realise.
It is very difficult to get rid of livebearer fry; most shops won't take them and it can be hard to even give them away. The trouble with separating the sexes is that livebearers can store packets of sperm for around six months, so can carry on producing fry, even when there are no males present.
When you remember that each female can have between 30 or 40 fry (although they can have more), every 30 days, and that the fry can breed at 3 or 4 months old, you can end up with a lot of fish, very quickly.
I would very strongly recommend you have male guppies only.