SyntaxFix
Write A Post
Hire A Developer
Questions
Just whipped this up for my problem, it just adds a space until the length of string is more than the min_length you give it.
def format_string(str, min_length): while len(str) < min_length: str += " " return str