Question : how to add trailing zeros in python
Answered by : bala
text = "hello"
print(text.zfill(10))
Output: '00000hello'
Source : | Last Update : Fri, 23 Jul 21
Question : Number of trailing zeros of N!
Answered by : amir-ben-shimol
function zeros (n) { let count =0 while(n !== 0){ count += Math.floor(n/5) n/=5 } return count
} console.log((zeros(5)))
Source : | Last Update : Fri, 01 Jul 22
Question : how to add trailing zeros in the number
Answered by : bala
['{0:05d}'.format(s) for s in range(100)]
Source : https://www.kaggle.com/c/rsna-miccai-brain-tumor-radiogenomic-classification/code | Last Update : Fri, 23 Jul 21