Sri Lankan parliament members will elect a new president within a week, the speaker said, after he confirmed leader <a href="https://www.thenationalnews.com/world/2022/07/13/sri-lanka-president-gotabaya-rajapaksa-flees-to-maldives-on-air-force-jet/" target="_blank">Gotabaya Rajapaksa</a> had officially resigned. The resignation, which was emailed from Singapore where Mr Rajapaksa, his wife Ioma and their two bodyguards landed on Thursday, has been accepted, speaker Mahinda Yapa Abeywardana was cited by AFP as saying. The opposition parties are attempting to put together an all-party government and pick candidates who can take over from Mr Rajapaksa and Prime Minister Ranil Wickremesinghe. Last week the world saw unforgettable scenes, as tens of thousands of <a href="https://www.thenationalnews.com/tags/sri-lanka/" target="_blank">Sri Lankan</a> protesters took to the streets in anger over the state of their country. Their frustration over the country's <a href="https://www.thenationalnews.com/world/asia/2022/07/09/sri-lanka-protesters-invade-presidents-official-residence-in-colombo/" target="_blank">devastating economic crisis</a> was directed at the country’s political elite. Demonstrators called for the resignation of both Mr Rajapaksa and Mr Wickremesinghe. But the protests themselves aren’t new, with the latest wave having started more than 100 days ago. But the most recent unrest persuaded the president and the prime minister to announce they were willing to step down. <a href="https://www.thenationalnews.com/world/asia/2022/07/13/sri-lanka-prime-minister-ranil-wickremesinghes-office-stormed-by-protesters/" target="_blank">Sri Lanka</a>, with its lush greenery and natural landscapes, is a prime tourist destination. But during the pandemic, that source of revenue <a href="https://www.thenationalnews.com/world/asia/2022/07/11/sri-lankans-hope-change-of-government-can-save-flagging-tourism-industry/" target="_blank">took a big hit</a> as people remained locked indoors and travel was restricted. Then, remittances from <a href="https://www.thenationalnews.com/world/asia/2022/07/14/sri-lankas-gotabaya-rajapaksa-heading-to-singapore-amid-calls-for-resignation/" target="_blank">Sri Lankans</a> living abroad began to wane. Moves by Mr Rajapaksa to introduce tax cuts also hit government finances, affecting imports of fuel, food and medicines. Lengthy power cuts became frequent and acute food and <a href="https://www.thenationalnews.com/world/asia/2022/07/05/sri-lanka-fuel-crisis-continues-as-government-issues-new-quota-rules/" target="_blank">fuel shortages</a> began to take their toll. Long queues started forming at shops selling cooking gas and inflation hit almost 55 per cent in June. All the while, people on the island of 22 million, grew angry and blamed the country’s leaders for the financial turmoil. The final straw came last month, when the government said it had almost run out of fuel and stopped all sale of petrol except for “essential services”. Soon after, protesters stormed the <a href="https://www.thenationalnews.com/world/asia/2022/07/09/protesters-storm-residence-of-sri-lankan-president/" target="_blank">president’s home</a> in Colombo and other key government buildings. The eighth president of Sri Lanka, Mr Rajapaksa, 73, has a military background and took office only in 2019. He was a dual US citizen up until he became president. Mr Rajapaksa ran his campaign based on a nationalistic agenda, with economic and security developments at the fore. Assisting his win, perhaps, was his relative lack of a political career, making him Sri Lanka’s first president with a military background. However, Mr Rajapaksa‘s family is no stranger to politics with a father who served as MP and Cabinet Minister of Agriculture and Land. Gotabaya's brother, Mahinda Rajapaksa, served as president between 2005 and 20015 . After assuming office in 2019, some of Gotabaya's first moves as president included consolidation of power and appointing his brother Mahinda as prime minister. During his short stint, the country declared bankruptcy, defaulting on its debts for the first time since it gained independence in 1948. President Gotabaya Rajapaksa <a href="https://www.thenationalnews.com/world/2022/07/13/sri-lanka-president-gotabaya-rajapaksa-flees-to-maldives-on-air-force-jet/" target="_blank">left the country on Wednesday</a>, with his wife and two security officials on board a military aircraft in the early hours of Wednesday, the Sri Lanka Air Force said. His escape came hours before Mr Rajapaksa was due to hand in his resignation. The Ministry of Defence said the couple were headed to the Maldives. A large crowd of protesters stormed his residence, so it is likely that the president feared for his safety, which is why he fled. If the president <a href="https://www.thenationalnews.com/world/asia/2022/07/12/crisis-hit-sri-lanka-faces-uncertain-transition-as-vote-for-new-president-looms/" target="_blank">does step down</a>, the parliament would be responsible for electing a temporary leader. The constitution and Presidential Elections Act of 1981 stipulate that that person should be a member of parliament and that a vote must take place within a month from the date that the post of president was vacated, constitutional lawyer Gehan Gunatilleke wrote in the <i>Himal Southasian </i>magazine<i><b>.</b></i> “Once the president resigns, Parliament must be summoned to meet within three days of the vacancy,” Mr Gunatilleke said. ”When Parliament meets, the secretary general must fix a deadline to receive nominations for the office of president. The deadline for nominations must be a date not earlier than four hours and not later than seven days from Parliament’s initial meeting.” After a vote, the new president would serve what ever remains from the current presidential term, which in the case of president Rajapaksa, ends in 2024.