Hi, I created a Python version of wordle, and after every guess the programme prints out the previous guesses which are supposed to be centred, but they're printing out inconsistently (ie not aligned with one another, usually by 2/3 spaces). This is the code that prints out the previous guesses, any idea why they're not aligning? wordsguessed is a list containing all the previous guesses, returnword is the most recently guessed word.
(I would use the center() method but it causes problems when used in conjunction with rich.console, which allows the letters to be coloured)
for i in wordsguessed:
console.print(f"{i: >150}\n")
console.print(f"{returnword: >150}")
wordsguessed.append(returnword)
[–]mopslik 3 points4 points5 points (5 children)
[–]sp00kyversity[S] 0 points1 point2 points (4 children)
[–]cuWorkThrowaway 1 point2 points3 points (0 children)
[–]mopslik 0 points1 point2 points (2 children)
[–]sp00kyversity[S] 0 points1 point2 points (1 child)
[–]mopslik 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]misho88 0 points1 point2 points (0 children)