2017-07-09 08:04:26 -04:00
|
|
|
"""
|
|
|
|
categories: Types,str
|
|
|
|
description: str.ljust() and str.rjust() not implemented
|
|
|
|
cause: MicroPython is highly optimized for memory usage. Easy workarounds available.
|
2017-12-03 08:32:09 -05:00
|
|
|
workaround: Instead of ``s.ljust(10)`` use ``"%-10s" % s``, instead of ``s.rjust(10)`` use ``"% 10s" % s``. Alternatively, ``"{:<10}".format(s)`` or ``"{:>10}".format(s)``.
|
2017-07-09 08:04:26 -04:00
|
|
|
"""
|
2021-03-15 09:57:36 -04:00
|
|
|
print("abc".ljust(10))
|