Feb-26-2022, 08:01 PM
(This post was last modified: Feb-26-2022, 08:03 PM by deanhystad.)
Right justify >
Left justify <
Center justify ^
Left justify <
Center justify ^
greeting = "Hello" print(f"{greeting:<10}\n{greeting:>10}\n{greeting:^10}\n{greeting:10}")
Output:Hello
Hello
Hello
Hello