Bummer! You must be logged in to access this page.

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Three dots

Is three dots within triple quotes same as backslash n? Why does it not print as three dots?

"""...""" is not equal to "\n".

python print("test", """...""") outputs "test ..."

"""...""" (without print) would output nothing. Some people use it as a way to comment multiple lines but it's actually a docstring (https://www.pythonforbeginners.com/basics/python-docstrings)

1 Answer

Thanks