Ask coding questions

← Back to all posts
gideon
jonnyb2244 (1)

SyntaxError: EOL while scanning string literal
what does this mean? and how do i solve it?

Comments
hotnewtop
SixBeeps (5062)

Multiline strings need three quotation marks instead of just one. Also, you're interpolating the name Gideon#7590, which it shouldn't. Remove the {} around it.

jonnyb2244 (1)

@SixBeeps whats multiline strings? and where do i need them?

SixBeeps (5062)

@jonnyb2244 Multiline strings are strings that span across multiple lines. Look at lines 14 and 15, you have a string that starts on one line and ends on another. I'd suggest putting it all on one line or using a multiline string.

"""this is
a multiline
string btw"""

jonnyb2244 (1)

@SixBeeps File "main.py", line 15
to Discord"""")
^
SyntaxError: EOL while scanning string literal

jonnyb2244 (1)

@SixBeeps still the same error, its just jumped to another syntax. ;(