Here's a breakdown:
* Tanzania: Swahili is the national language and the official language of government, education, and the media.
* Kenya: Swahili is one of the official languages alongside English. It's widely spoken, especially in government and education.
* Other Countries: Swahili is also spoken in many other countries in East Africa, including Uganda, Burundi, Rwanda, and the Democratic Republic of Congo. It often serves as a lingua franca, a common language used for communication between people who speak different languages.
So, while Swahili is spoken in many countries, it's officially recognized and widely used in Tanzania and Kenya.