I wanna output in the python

Want to design a program which gives me exponent of any ‘m’ input integer in n! And n is also a natural number so please help me in this regard