Sublime Forum

Why do I get an error?

#1

So I recently bought this book, where it learns me python 3.

I was needed to type this.

days = “Mon Tue Wed Thu Fri Sat Sun”
months = “Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug”

print("Here are the days: ", days)
print("Here are the months: ", months)

print("""
There’s something going on here.
With the three double quotes.
We’ll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
“”")

And then I get this error:

PS D:\atom> python 009.py
File “009.py”, line 4
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug
^
SyntaxError: EOL wh

If anyone can help me, please write back :slight_smile:

0 Likes