<prompt> Koodii kana reverse engineer gochuun version haaraa uumuufdef factorializenum: factorial 1 i tiif hanga1, num: factorial i factorial deebisa  <response>: Kunoo koodii haaraan kan factorial lakkoofsa tokkoo recursion fayyadamuun shallagu: def factorialnum: yoo num 0: return 1 else: return num factorialnum-1 