As dramaqueen answered the question about the females I'll try and cover your second question as best I can. I am new to bettas but from what I have researched and learned on here male bettas can live in a community tank, mine is doing quite well with peppered cory cats, neon tetras and a mystery snail but not all bettas will get along with these fish, so you will need to look out for any aggresive behaviour. Some people put shrimp in with their male but I didnt want to risk it as bettas can find shrimp as a nice snack plus they are £3 a shrimp so its pretty expensive if your betta is just going to eat them.
Just like the females the male will also need lots of plants and hiding places, not only for the betta but also for cover for the other fish. Most of us on here use ceramic pots, if you use this then make sure you block the hole with aquarium sealant, what I have done is threaded a thin grass like plant through the hole and theres no way a fish can get through.
Like I said I'm new to bettas and the more experienced members on this forum will probably cover the more advanced stuff for you =)
Hope this was some sort of help =)