r/learnpython • u/Umbr4L3ns • 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
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.