<prompt> Kutumia Python, kujenga programu ambayo inaweza kutabiri lugha ya maandishi fulani.Hii ni sentensi ya Kifaransa  <response>: Here is an example of a simple Python program that uses the langdetect library to predict the language of a given text:pythonfrom langdetect import detectdef predict_languagetext: lang detecttext return langtext This is a sentence in Frenchlanguage predict_languagetextprintfThe predicted language of the text is: languageNote: You need to have the langdetect library installed to run this code. You can do so by running the command !pip install langdetect on your command line. 