I need help with bugs in python wordle game

Could someone fix my code, I used @Tovtovim/@MiloCat RAINBOW-PY “module”
this is their repl

I have this code:

Your Word was: {green}{wordInput}{clf}

The Correct Word Was: {rgbCol(0, 100, 255)}{word}{clf}

YOU GUESSED THE RIGHT WORD IN {6 - guesses} GUESSE(S)!

    {rainbowText('''┏┓╋╋┏┳━━━┳┓╋┏┓ ┏┓┏┓┏┳━━━┳━┓╋┏┳┓
    ┃┗┓┏┛┃┏━┓┃┃╋┃┃ ┃┃┃┃┃┃┏━┓┃┃┗┓┃┃┃
    ┗┓┗┛┏┫┃╋┃┃┃╋┃┃ ┃┃┃┃┃┃┃╋┃┃┏┓┗┛┃┃
    ╋┗┓┏┛┃┃╋┃┃┃╋┃┃ ┃┗┛┗┛┃┃╋┃┃┃┗┓┃┣┛
    ╋╋┃┃╋┃┗━┛┃┗━┛┃ ┗┓┏┓┏┫┗━┛┃┃╋┃┃┣┓
    ╋╋┗┛╋┗━━━┻━━━┛ ╋┗┛┗┛┗━━━┻┛╋┗━┻┛''')}{clf}
        ''')

      input(f'hit [{green}enter{white}] to continue{clf}')

were clf is a color

and i got this error:

File "main.py", line 1011
    {rainbowText('''┏┓╋╋┏┳━━━┳┓╋┏┓ ┏┓┏┓┏┳━━━┳━┓╋┏┳┓
                                 ^
SyntaxError: invalid character in identifier

Oo can’t wait

Btw @AMOGHSANGINENI has fixed this, he just hasn’t updated this post

1 Like

It looks like people already fixed this since you posted on the comments of the Repl too.
https://replit.com/@Tovtovim/Rainbow-Text-in-Python-RGB?c=744336

1 Like

yeah, i recently joined replit ask so idk abt a lot of the things i can do xD

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.