Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introducing Lists!
You have completed Introducing Lists!
Preview
Strings provide excellent ways to create lists as well as to create a string representation of your lists. Let's explore `str.split` and `str.join`!
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
that's pretty enough for
us because we understand how that works.
0:00
But our users deserve
something a little better.
0:03
You can actually join your elements
together into a single string
0:06
using a method on strings called join and
vice versa.
0:10
There will be times when
you'll have a string,
0:14
but really it'd be more handy to
have that information in a list.
0:16
Now there's a method that
is named split on strings
0:20
that will allow us to turn
a string into a list.
0:23
Let's take a peek at how
those work in the REPL.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up