Which languages are spoken in Morocco
Morocco's official languages are Arabic and Berber. The country's distinctive group of Moroccan Arabic dialects is referred to as Darija. Approximately 89.8% of the whole population can communicate to some degree in Moroccan Arabic. The Berber language is spoken in three dialects (Tarifit, Tashelhit and Central Atlas Tamazight). In 2008, Frédéric Deroche estimated that there were 12 million Berber speakers, making up about 40% of the population. The 2004 population census reported that 28.1% of the population spoke Berber.

French is widely used in governmental institutions, media, mid-size and large companies, international commerce with French-speaking countries, and often in international diplomacy. French is taught as an obligatory language in all schools. In 2010, there were 10,366,000 French-speakers in Morocco, or about 32% of the population.
Morocco's official languages are Arabic and Berber. French is widely used in governmental institutions and media. English and Spanish are also used a lot in Morocco.
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------
Morocco's official languages are Arabic and Berber. The country's distinctive group of Moroccan Arabic dialects is referred to as Darija. Approximately 89.8% of the whole population can communicate to some degree in Moroccan Arabic. The Berber language is spoken in three dialects (Tarifit, Tashelhit and Central Atlas Tamazight). In 2008, Frédéric Deroche estimated that there were 12 million Berber speakers, making up about 40% of the population. The 2004 population census reported that 28.1% of the population spoke Berber.

French is widely used in governmental institutions, media, mid-size and large companies, international commerce with French-speaking countries, and often in international diplomacy. French is taught as an obligatory language in all schools. In 2010, there were 10,366,000 French-speakers in Morocco, or about 32% of the population.
----------------
Answer the following query.
Which languages are spoken in Morocco

user
Morocco's official languages are Arabic and Berber. French is widely used in governmental institutions and media. English and Spanish are also used a lot in Morocco.
assistant