A Communist leader who has long campaigned for women's rights was elected Wednesday as Nepal's first female president. Bidhya Devi Bhandari of the Communist Party of Nepal Unified Marxist-Leninist received 327 votes against her opponent's 214 in parliament on Wednesday, Parliament Speaker Onsari Gharti announced. The president is the ceremonial head in Nepal while the prime minister is the nation's leader. Bhandari, 54, is the deputy leader of the party led by Prime Minister Khadga Prasad Oli, who was elected earlier this month and leads a coalition government. The new constitution adopted last month required Nepal to name a new president. Bhandari is an active campaigner for women's rights in Nepal and was among the politicians who campaigned for ensuring women's rights in the new constitution. The document says one-third of the member in parliament have to be women and either the president or vice president must be a woman. She has been a leading political figure since her husband Madan Bhandari, who was then leader of the party, was killed in a still unsolved car accident in 1993. She also led many demonstrations against the then King Gyanendra in 2006 that finally ended his authoritarian rule and restored democracy. Bhandari is Nepal's second president since the Himalayan nation was turned into a republic after abolishing the centuries-old monarchy. The first president, Ram Baran Yadav, was elected in 2008 and was supposed to be in office for two years. But preparing and adopting the constitution took seven years because of differences between political parties. — AP