Even though some sources may claim there are 55 countries in Africa, raking Western Sahara as a country, it is clear that the sovereignty of Western Sahara is being disputed. Hence, below is the comprehensive list of all the 54 countries in Africa:
North Africa
Algeria
Egypt
Libya
Mauritania
Morocco
Tunisia
West Africa
Benin
Burkina Faso
Cabo Verde
Côte d'Ivoire
Gambia
Ghana
Guinea
Guinea-Bissau
Liberia
Mali
Niger
Nigeria
Senegal
Sierra Leone
Togo
East Africa
Burundi
Comoros
Djibouti
Eritrea
Ethiopia
Kenya
Madagascar
Malawi
Mauritius
Mozambique
Rwanda
Seychelles
Somalia
South Sudan
Tanzania
Uganda
Central Africa
Angola
Cameroon
Central African Republic
Chad
Democratic Republic of the Congo
Republic of the Congo
Equatorial Guinea
Gabon
São Tomé and Principe
Southern Africa
Botswana
Lesotho
Namibia
South Africa
Eswatini
Zambia
Zimbabwe
Again, note that some other sources may consider Western Sahara as the 55th country in Africa, but its status remains disputed. So, we have presented 54 recognized African countries.