For this Question: Find number of digits in the factorial of a number n.First line consists of a single integer denoting n
1 <= n <= 100000Output a single line containing number of digits in factorial(n).Sample Input
5

Sample Output
3

Explanation:-
5!=120
number of digits = 3

Sample Input
10

Sample Output
7, I have written this Solution Code: import math
def findDigits(n):
	if (n < 0):
		return 0;
	if (n <= 1):
		return 1;
	digits = 0;
	for i in range(2, n + 1):
		digits += math.log10(i);

	return math.floor(digits) + 1;

print(findDigits(int(input())));, In this Programming Language: Python, Now tell me if this Code is compilable or not?