how to right pad zeros python code example Example: pad zeros to a string python my_str='9' my_str.zfill(2)