Flowers have both male and female parts that work together for pollination and reproduction. The main parts are the pistil, which is the female part consisting of the stigma, style, and ovary; and the stamen, which is the male part made up of the filament and anther. A flower is considered perfect if it contains both male and female parts and imperfect if it only contains one.