coolblaze03's picture
Upload folder using huggingface_hub
1514a0b verified
Raw
History Blame Contribute Delete
243 Bytes
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)