SyntaxFix
Write A Post
Hire A Developer
Questions
This is my Python function:
def add_nulls(num, cnt=2): cnt = cnt - len(str(num)) nulls = '0' * cnt return '%s%s' % (nulls, num)