Custom replacement can be done by combining with the regular expression module
Zero padding
'1'.zfill(3) #'001'
Character count
'hello world'.count('l') #3
Recommended Posts