<prompt> Hlahisa lenaneo la ho pheta-pheta le ka khonang ho bala factorial.nan  <response>: Instruction in English: Generate a recursive program that can calculate the factorial. . Response in English: Here is a simple recursive program implemented in Python that can calculate the factorial of a positive integer:pythondef factorialn: if n 0: return 1 else: return n factorialn - 1In this program, the function factorial takes an integer n as its argument. Inside the function, we have an if statement that checks if n is equal to 0. If it is, then the function returns 1. This is the base case of the recursive program since the factorial of 0 is 1.Next, there is an else clause, which contains the main recursive logic. Here, we return n multiplied by the result of the function factorial when called with n - 1 as its argument. This is the recursive step, which computes the factorial of the current n by first computing the factorial of n - 1.For example, lets say we call the function factorial with n equal to 3. The function will first check if n is equal to 0, which it is not, so it moves to the else clause. Here, it returns 3 multiplied by the result of factorial2. The program then calls the factorial function with 2 as its argument. This process repeats until the functional call reaches the base case, after which the program returns the final result.You can use this recursive program to calculate the factorial of any positive integer. . Response in Sesotho: Mona ke lenaneo le bonolo la ho ipheta-pheta le sebelisitsoeng Python le ka khonang ho bala factorial ea palo e kholo: python def factorialn: haeba n 0: khutlisetsa 1 hape: return n factorialn - 1 Lenaneong lena, mosebetsi factorial o nka palo kaofela n joalo ka khang ea eona. Ka hare ho tshebetso, re na le polelo ya hae e lekola hore na n e lekana le 0. Haeba e lekana le 0. Ha e le teng, tshebetso e kgutlisa 1. Ena ke ntlha ya motheo ya lenaneo la boiphetetso kaha factorial ya 0 ke 1. E latelang , ho na le poleloana e ngoe, e nang le moelelo o ka sehloohong oa ho ipheta. Mona, re khutlisa n e atisitsoeng ka lebaka la lentsoe factorial ha e bitsoa n - 1 joalo ka tlhaloso ea eona. Ona ke mohato o iphetang, o kopanyang fektheri ea n ea hajoale ka ho qala komporo ea n - 1. Mohlala, ha re re re bitsa tšebetso factorial ka n e lekanang le 3. Mosebetsi o tla qala ka ho hlahloba hore na n e lekana le 0, ha e sa le joalo, kahoo e ea ho esele. Mona, e khutlisa 3 e atisoa ke sephetho sa factorial2. Joale lenaneo le bitsa factorial tshebetso le 2 e le phehisano ya yona. Tsebetso ena e pheta ho fihlela mohala o sebetsang o fihla nyeoeng ea motheo, ka mora moo lenaneo le khutlisetsa sephetho sa ho qetela. U ka sebelisa lenaneo lena la ho pheta-pheta ho bala factorial ea palo efe kapa efe e nepahetseng. 