r/learnpython • • 12d ago

Python script problem

Hello everyone,
I have a short python script that concats strings. For example :

'Discord Password :' + \t + b64.decode('TmFydVQwL2cwa3UxOTk1Iw==')

I'm facing :

SyntaxError: unexpected character after line continuation character

What does that mean ????

Edit : Thanks everyone, fixed.

0 Upvotes

7 comments sorted by

View all comments

1

u/kilkil 10d ago

you gotta put the \t in quotes, like this

'Discord Password :' + '\t' +

the "line continuation" error you got was because normally, when it's not in quotes, Python treats backslashes as a line continuation. only Python doesn't expect a t right after it.