<prompt> Andika programu ya Python ili kupata msingi wa nambari uliyopewa.7  <response>: def factorialn: Kesi msingi ikiwa n 0: kurudi 1 kipochi cha kujirudia kwingine: rudisha nkipengele n - 1 Ingiza nambarinum intinputIngiza nambari: Kiwanda cha pato cha nambariprintThe factorial of, num, is, factorialnum 