Ask coding questions

← Back to all posts
gideon
h
jonnyb2244

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

Voters
jonnyb2244
Comments
hotnewtop
SixBeeps

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

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

SixBeeps

@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

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

jonnyb2244

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