def pad(num, n=<NUM_LIT:2>, sign=False):
s = unicode(abs(num))<EOL>if len(s) < n:<EOL><INDENT>s = '<STR_LIT:0>' * (n - len(s)) + s<EOL><DEDENT>if not sign:<EOL><INDENT>return s<EOL><DEDENT>if num >= <NUM_LIT:0>:<EOL><INDENT>return '<STR_LIT:+>' + s<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT:->' + s<EOL><DEDENT>
returns n digit string representation of the num