The function should handle any input numbers

Question Answered step-by-step The function should handle any input numbers The function should handle any input numbers Image transcription textDefine a function sum of factorial that accepts a positive integer n and returns the value of the followingfomula: 1! + 2! + 3!. . . k!+… +n!, where k! = 1 x 2x. . . x(k – 1) x k. For example: Test Input Result print(sum_of_factorial(2)) |print(sum_of_factorial(2) ) 3 print (sum_of_factorial(3)) print(sum_of_factorial(3))… Show more Computer Science Engineering & Technology Python Programming COMP 1029P Share QuestionEmailCopy link Comments (0)