pad with 0's python formattin code example Example: pad zeros to a string python my_str='9' my_str.zfill(2)