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 Basic Object-Oriented Python Creating a Memory Game Game Class Part 2

Angelus Miculek
Angelus Miculek
3,867 Points

what is .join amendola

I am taking the beginning python track and have never heard of this .join function! Megan Amendola uses .join in the header (ln40 at 5:39) and doesn't say anything about what it is or what it does. Could someone please explain what .join is so I can actually understand? Or did I miss the lesson on it?

2 Answers

Steven Parker
Steven Parker
230,995 Points

The .join method is a standard built-in string method that was probably covered in one of the beginner-level courses (you're currently in an intermediate level course). But since you'll be likely to encounter new methods from time to time anyway, this is a good opportunity to get comfortable using the official Python documentation reference pages.

The .join method is covered on this page.

And here's the .join page at W3schools, which is another good reference source and typically has a bit more detail and some examples.

Angelus Miculek
Angelus Miculek
3,867 Points

Thanks for the info, Steven!