Type "sexing mollies" into the search bar and you will get some answers from previous threads. Basically (I think) the males have a gonopodium (pointy fin at the back) and the females have a more rounded one. there's a diagram floating around on here somewhere that makes it pretty clear.