<prompt> Unda programu ya kuhesabu mara ambazo neno linatumiwa katika sentensi.Maneno ni: Hii ni mfano wa sentensi. Neno ni: ni  <response>: Sure, here is a Python program that takes a sentence and a word as input and calculates the frequency of the word in the sentence:def calculate_word_freqsentence, word: Splitting the sentence into a list of individual words sentence_words sentence.split Counting the number of occurrences of the word in the list of words word_count sentence_words.countword Calculating the frequency of the word in the sentence freq word_countlensentence_words return freqsentence This is an example sentenceword isfreq calculate_word_freqsentence, wordprintfThe frequency of the word word in the sentence is freqIn the input you provided, the frequency of the word is in the sentence This is an example sentence is 0.2. 