Find And Replace String In List Python Code For Factorial Of A Number