How to align Python repetitive output print lines

Asked 1 weeks ago, Updated 1 weeks ago, 1 views

Hello, I'm printing repeatedly. I searched for a long time, but I don't know, so I'm asking you a question.

fori in range (0,50)
print("Keyword: "+str(key)+" / Current Rank: "+str(rank)+" Above")

Outputs like this However, I think I will output another variable later, but it will be uncomfortable to see if it gets longer, so the output result I want is

Like this, of course, the number of characters is the same, so it comes out like this, but even if the number of characters is different, I want to match it like that Is there a good way?


2022-09-20 11:01

1 Answers

2022-09-20 11:01

If you have any answers or tips

© 2022 pinfo. All rights reserved.