Rakesh Vermarakeshverma.hashnode.dev·Apr 14, 2024Text Alignment in PythonThere are methods in python on str class which are used to adjust the padding on texts. Ex: hello = 'Hello' print(hello.ljust(21, '-')) print(hello.center(21, '-')) print(hello.rjust(21, '-')) #Expected output for this would be Hello----------------...PythonAdd a thoughtful commentNo comments yetBe the first to start the conversation.