Datasets:
File size: 243 Bytes
1514a0b | 1 2 3 4 5 6 7 8 9 10 11 | import math
def first_Digit(n):
fact = 1
for i in range(2, n + 1):
fact = fact * i
while fact % 10 == 0:
fact = int(fact / 10)
while fact >= 10:
fact = int(fact / 10)
return math.floor(fact) |