paragraph_text: Libya (; ; ), officially the State of Libya, is a country in the Maghreb region in North Africa, bordered by the Mediterranean Sea to the north, Egypt to the east, Sudan to the southeast, Chad to the south, Niger to the southwest, Algeria to the west, and Tunisia to the northwest. The sovereign state is made of three historical regions: Tripolitania, Fezzan and Cyrenaica. With an area of almost , Libya is the fourth largest country in Africa, and is the 16th largest country in the world. Libya has the 10th-largest proven oil reserves of any country in the world. The largest city and capital, Tripoli, is located in western Libya and contains over one million of Libya's six million people. The second-largest city is Benghazi, which is located in eastern Libya.

paragraph_text: Chad has several regions: a desert zone in the north, an arid Sahelian belt in the centre and a more fertile Sudanian Savanna zone in the south. Lake Chad, after which the country is named, is the largest wetland in Chad and the second - largest in Africa. The capital N'Djamena is the largest city.

paragraph_text: 2017 Rank Country Nominal GDP ($billions) Nominal GDP per capita (US $) Notes Nigeria 376.284 1,994.235 South Africa 349.299 6,179.870 Egypt 237.037 2,500.772 Algeria 178.287 4,292.272 Angola 124.209 4,407.657 6 Sudan 119.00 1,428.000 7 Morocco 109.824 3,151.145 8 Ethiopia 80.874 872.840 9 Kenya 79.511 1,701.550 10 Tanzania 51.725 1,033.567 11 Ghana 47.032 1,663.190 12 Democratic Republic of the Congo 41.441 478.237 13 Ivory Coast 40.360 1,616.981 14 Tunisia 40.275 3,496.286 15 Cameroon 34.006 1,400.743 16 Libya 31.331 4,858.672 17 Uganda 26.349 699.410 18 Zambia 25.504 1,479.542 19 Zimbabwe 17.491 1,175.723 20 Botswana 17.168 7,876.997 21 Senegal 16.463 1,038.094 22 Mali 15.318 810.771 23 Gabon 15.206 7,971.589 24 Namibia 12.687 5,413.508 25 Mozambique 12.681 429.296 26 Burkina Faso 12.569 663.806 27 Mauritius 12.428 9,794.102 28 Madagascar 11.463 447.558 29 Equatorial Guinea 10.725 12,726.956 30 Chad 9.872 810.163 31 Guinea 9.721 749.463 32 Benin 9.238 830.404 33 Rwanda 9.137 771.702 34 Congo 8.513 1,958.174 35 Niger 8.253 439.997 36 Somalia 7.382 547.32 37 Malawi 6.206 323.740 38 Eritrea 5.813 979.692 39 Mauritania 5.116 1,317.938 40 Togo 4.767 611.133 41 Swaziland 4.491 3,914.821 42 Sierra Leone 3.641 491.448 43 Burundi 3.396 312.463 44 Liberia 3.285 729.292 45 South Sudan 2.870 228.034 46 Lesotho 2.768 1,425.310 47 Djibouti 2.029 1,988.765 48 Central African Republic 1.928 386.806 49 Cape Verde 1.741 3,237.597 50 Seychelles 1.482 15,685.955 51 Guinea - Bissau 1.350 794.107 52 The Gambia 1.009 480.040 53 Comoros 0.652 787.831 54 São Tomé and Príncipe 0.379 1,785.280 -- Total 2,191.104

paragraph_text: On a total scale the region has approximately 34,700,201 inhabitants who are spread among 30,000 islands in the South Pacific bordered between Asia and the Americas. This region has a diverse mix of economies from the highly developed and globally competitive financial market of Australia to the much less developed economies that belong to many of its island neighbours. New Zealand is the only other developed country in the region, although the economy of Australia is by far the largest and most dominant economy in the region and one of the largest in the world.

paragraph_text: South Africa, officially the Republic of South Africa (RSA), is the southernmost country in Africa. It is bounded to the south by 2,798 kilometres (1,739 mi) of coastline of Southern Africa stretching along the South Atlantic and Indian Oceans; to the north by the neighbouring countries of Namibia, Botswana, and Zimbabwe; and to the east and northeast by Mozambique and Swaziland (Eswatini); and it surrounds the kingdom of Lesotho. South Africa is the largest country in Southern Africa and the 25th - largest country in the world by land area and, with close to 56 million people, is the world's 24th-most populous nation. It is the southernmost country on the mainland of the Old World or the Eastern Hemisphere. About 80 percent of South Africans are of Sub-Saharan African ancestry, divided among a variety of ethnic groups speaking different African languages, nine of which have official status. The remaining population consists of Africa's largest communities of European (white), Asian (Indian), and multiracial (Coloured) ancestry.

paragraph_text: Small-scale artisanal mining of gold is another source of dangerous child labour in poor rural areas in certain parts of the world. This form of mining uses labour-intensive and low-tech methods. It is informal sector of the economy. Human Rights Watch group estimates that about 12 percent of global gold production comes from artisanal mines. In west Africa, in countries such as Mali - the third largest exporter of gold in Africa - between 20,000 and 40,000 children work in artisanal mining. Locally known as orpaillage, children as young as 6 years old work with their families. These children and families suffer chronic exposure to toxic chemicals including mercury, and do hazardous work such as digging shafts and working underground, pulling up, carrying and crushing the ore. The poor work practices harm the long term health of children, as well as release hundreds of tons of mercury every year into local rivers, ground water and lakes. Gold is important to the economy of Mali and Ghana. For Mali, it is the second largest earner of its export revenue. For many poor families with children, it is the primary and sometimes the only source of income.

paragraph_text: South Africa, officially the Republic of South Africa (RSA), is the southernmost country in Africa. It is bounded on the south by 2,798 kilometres (1,739 mi) of coastline of Southern Africa stretching along the South Atlantic and Indian Oceans; on the north by the neighbouring countries of Namibia, Botswana, and Zimbabwe; and on the east and northeast by Mozambique and Swaziland; and surrounds the kingdom of Lesotho. South Africa is the largest country in Southern Africa and the 25th - largest country in the world by land area and, with close to 56 million people, is the world's 24th-most populous nation. It is the southernmost country on the mainland of the Old World or the Eastern Hemisphere. About 80 percent of South Africans are of Sub-Saharan African ancestry, divided among a variety of ethnic groups speaking different African languages, nine of which have official status. The remaining population consists of Africa's largest communities of African (black), European (white), Asian (Indian), and multiracial (coloured) ancestry.

paragraph_text: The region's economy greatly depends on agriculture; rice and rubber have long been prominent exports. Manufacturing and services are becoming more important. An emerging market, Indonesia is the largest economy in this region. Newly industrialised countries include Indonesia, Malaysia, Thailand, and the Philippines, while Singapore and Brunei are affluent developed economies. The rest of Southeast Asia is still heavily dependent on agriculture, but Vietnam is notably making steady progress in developing its industrial sectors. The region notably manufactures textiles, electronic high-tech goods such as microprocessors and heavy industrial products such as automobiles. Oil reserves in Southeast Asia are plentiful.

paragraph_text: Since 2002, the North East of the country has seen sectarian violence by Boko Haram, an Islamist movement that seeks to abolish the secular system of government and establish Sharia law. Nigerian President Goodluck Jonathan in May 2014 claimed that Boko Haram attacks have left at least 12,000 people dead and 8,000 people crippled. At the same time, neighbouring countries, Benin, Chad, Cameroon and Niger joined Nigeria in a united effort to combat Boko Haram in the aftermath of a world media highlighted kidnapping of 276 schoolgirls and the spread of Boko Haram attacks to these countries.

paragraph_text: Modern Egypt is considered to be a regional and middle power, with significant cultural, political, and military influence in North Africa, the Middle East and the Muslim world. Its economy is one of the largest and most diversified in the Middle East, with sectors such as tourism, agriculture, industry and services at almost equal production levels. In 2011, longtime President Hosni Mubarak stepped down amid mass protests. Later elections saw the rise of the Muslim Brotherhood, which was ousted by the army a year later amid mass protests.

paragraph_text: The state has the 12th-largest state economy in Mexico, accounting for 2.7% of the country’s GDP. Chihuahua has the fifth highest manufacturing GDP in Mexico and ranks second for the most factories funded by foreign investment in the country. As of 2011[update], the state had an estimated 396 billion pesos (31.1 billion dollars) of annual GDP. According to official federal statistical studies, the service sector accounted for the largest portion of the state economy at 59.28%; the manufacturing and industrial sector is estimated to account for 34.36% of the state's GDP, with the agricultural sector accounting for 6.36% of the state's GDP. Manufacturing sector was the principal foreign investment in the state followed by the mining sector. In 2011, the state received approximately 884 million dollars in remittances from the United States, which was 4.5% of all remittances from the United States to Mexico.

paragraph_text: As a sovereign country (2016), Texas would be the 10th largest economy in the world by GDP (ahead of South Korea and Canada). Texas's household income was $48,259 in 2010 ranking 25th in the nation. The state debt in 2012 was calculated to be $121.7 billion, or $7,400 per taxpayer. Texas has the second largest population in the country after California.

paragraph_text: About half of the population depends on agriculture (largely subsistence agriculture) for its livelihood, but Namibia must still import some of its food. Although per capita GDP is five times the per capita GDP of Africa's poorest countries, the majority of Namibia's people live in rural areas and exist on a subsistence way of life. Namibia has one of the highest rates of income inequality in the world, due in part to the fact that there is an urban economy and a more rural cash-less economy. The inequality figures thus take into account people who do not actually rely on the formal economy for their survival. Although arable land accounts for only 1% of Namibia, nearly half of the population is employed in agriculture.

paragraph_text: The economy of India is an underdeveloped mixed economy. It is the world's seventh - largest economy by nominal GDP and the third - largest by purchasing power parity (PPP). The country ranks 141st in per capita GDP (nominal) with $1723 and 123rd in per capita GDP (PPP) with $6,616 as of 2016. After 1991 economic liberalisation, India achieved 6 - 7% average GDP growth annually. In FY 2015 India's economy became the world's fastest growing major economy surpassing China. The long - term growth prospective of the Indian economy is positive due to its young population, corresponding low dependency ratio, healthy savings and investment rates, and increasing integration into the global economy.

paragraph_text: Tehran is the country's capital and largest city, as well as its leading cultural and economic center. Iran is a major regional and middle power, exerting considerable influence in international energy security and the world economy through its large reserves of fossil fuels, which include the largest natural gas supply in the world and the fourth-largest proven oil reserves. Iran's rich cultural legacy is reflected in part by its 19 UNESCO World Heritage Sites, the fourth-largest number in Asia and 12th-largest in the world.

paragraph_text: As of 2015[update], Nigeria is the world's 20th largest economy, worth more than $500 billion and $1 trillion in terms of nominal GDP and purchasing power parity respectively. It overtook South Africa to become Africa's largest economy in 2014. Also, the debt-to-GDP ratio is only 11 percent, which is 8 percent below the 2012 ratio. Nigeria is considered to be an emerging market by the World Bank; It has been identified as a regional power on the African continent, a middle power in international affairs, and has also been identified as an emerging global power. Nigeria is a member of the MINT group of countries, which are widely seen as the globe's next "BRIC-like" economies. It is also listed among the "Next Eleven" economies set to become among the biggest in the world. Nigeria is a founding member of the Commonwealth of Nations, the African Union, OPEC, and the United Nations amongst other international organisations.

paragraph_text: BRICS is the acronym for an association of five major emerging national economies: Brazil, Russia, India, China and South Africa. Originally the first four were grouped as ``BRIC ''(or`` the BRICs''), before the induction of South Africa in 2010. The BRICS members are all leading developing or newly industrialized countries, but they are distinguished by their large, sometimes fast - growing economies and significant influence on regional affairs; all five are G - 20 members. Since 2009, the BRICS nations have met annually at formal summits. China hosted the 9th BRICS summit in Xiamen on September 3rd, 4th and 5th, 2017. The term does not include countries such as South Korea, Mexico and Turkey for which other acronyms and group associations were later created.

paragraph_text: The Constitution of South Africa is the supreme law of the country of South Africa. It provides the legal foundation for the existence of the republic, sets out the rights and duties of its citizens, and defines the structure of the government. The current constitution, the country's fifth, was drawn up by the Parliament elected in 1994 in the first non-racial elections. It was promulgated by President Nelson Mandela on 18th December 1996 and came into effect on 4 February 1997, replacing the Interim Constitution of 1993.

paragraph_text: Greece is a democratic and developed country with an advanced high-income economy, a high quality of life and a very high standard of living. A founding member of the United Nations, Greece was the tenth member to join the European Communities (precursor to the European Union) and has been part of the Eurozone since 2001. It is also a member of numerous other international institutions, including the Council of Europe, NATO,[a] OECD, OIF, OSCE and the WTO. Greece, which is one of the world's largest shipping powers, middle powers and top tourist destinations, has the largest economy in the Balkans, where it is an important regional investor.

paragraph_text: Swaziland is a developing country with a small economy. Its GDP per capita of $9,714 means it is classified as a country with a lower-middle income. As a member of the Southern African Customs Union (SACU) and Common Market for Eastern and Southern Africa (COMESA), its main local trading partner is South Africa. Swaziland's currency, the lilangeni, is pegged to the South African rand. Swaziland's major overseas trading partners are the United States and the European Union. The majority of the country's employment is provided by its agricultural and manufacturing sectors. Swaziland is a member of the Southern African Development Community (SADC), the African Union, the Commonwealth of Nations and the United Nations.

Question: Who is the President of the country with the largest economy in Africa?
Answer: Goodluck Jonathan