<prompt> Ngola tšebetso ea Python e nkang nomoro ebe e khutlisa factorial ea nomoro eo.nan  <response>: Instruction in English: Write a Python function that takes a number and returns the factorial of that number. . Response in English: Here is a Python function that calculates the factorial of a given number:pythondef factorialn: if n 0: return 1 else: return n factorialn - 1This function takes one argument n, which is the integer for which the factorial needs to be calculated. The function uses recursion to calculate the factorial. If the value of the function argument n is 0, then the function returns 1. Otherwise, it returns the result of multiplying n and the factorial of n-1.Heres an example usage of the function:pythonnum 5result factorialnumprintfThe factorial of num is result Output: The factorial of 5 is 120 . Response in Sesotho: Mona ke tsebetso ea Python e balang factorial ea nomoro e fanoeng: python def factorialn: haeba n 0: khutlisetsa 1 hape: khutlisetsa n factorialn - 1 Tsebetso ena e nka e le ngoe. khang n, e leng palo e felletseng eo fektheri e lokelang ho balloa. Sesebelisoa se sebelisa recursion ho bala factorial. Haeba boleng ba mantsoe a reng n ke 0, mosebetsi o tla khutlisa 1. Ho seng joalo, e khutlisa sephetho sa ho atisa n le factorial ea n-1. Mona ke mohlala oa tšebeliso ea mosebetsi: python num 5 result factorialnum printfThe factorial of num is result Sephetho: Factorial ea 5 ke 120 