Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
...is already built into the string class. It is called rjust. So replace all uses of your over-engineeredover-engineered function with str.rjust(longest), or change the function to use rjust.
...is already built into the string class. It is called rjust. So replace all uses of your over-engineered function with str.rjust(longest), or change the function to use rjust.
...is already built into the string class. It is called rjust. So replace all uses of your over-engineered function with str.rjust(longest), or change the function to use rjust.