How to align Python repetitive output print lines

Asked 2 years ago, Updated 2 years ago, 20 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?

python

2022-09-20 11:01

1 Answers

https://daewonyoon.tistory.com/322


2022-09-20 11:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.